Send search form by Ctrl+Enter on <select>

This commit is contained in:
Jakub Vrana 2011-03-21 00:59:40 +01:00
parent 0bf40f9c70
commit 3fadf35599
2 changed files with 3 additions and 3 deletions

View file

@ -207,8 +207,8 @@ function textareaKeydown(target, event, tab, button) {
*/ */
function searchKeydown(form, event) { function searchKeydown(form, event) {
var target = event.target || event.srcElement; var target = event.target || event.srcElement;
if (/select/i.test(target.tagName) && (event.keyCode == 13 || event.keyCode == 10)) { // shiftKey and rest allowed if (/select/i.test(target.tagName)) {
form.submit(); textareaKeydown(target, event);
} }
} }

View file

@ -3,7 +3,7 @@ Ability to save expression in edit
Respect default database collation (bug #3191489) Respect default database collation (bug #3191489)
Don't export triggers without table (bug #3193489) Don't export triggers without table (bug #3193489)
Esc to focus next field in Tab textarea (thanks to David Grudl) Esc to focus next field in Tab textarea (thanks to David Grudl)
Send select search form by Enter on <select> Send select search form by Ctrl+Enter on <select>
Enum editor and textarea Ctrl+Enter working in IE Enum editor and textarea Ctrl+Enter working in IE
AJAX forms in Google Chrome AJAX forms in Google Chrome
Parse UTF-16 and UTF-8 BOM in all text uploads Parse UTF-16 and UTF-8 BOM in all text uploads