mirror of
https://github.com/vrana/adminer.git
synced 2025-08-15 11:04:02 +02:00
Send search form by Ctrl+Enter on <select>
This commit is contained in:
@@ -207,8 +207,8 @@ function textareaKeydown(target, event, tab, button) {
|
||||
*/
|
||||
function searchKeydown(form, event) {
|
||||
var target = event.target || event.srcElement;
|
||||
if (/select/i.test(target.tagName) && (event.keyCode == 13 || event.keyCode == 10)) { // shiftKey and rest allowed
|
||||
form.submit();
|
||||
if (/select/i.test(target.tagName)) {
|
||||
textareaKeydown(target, event);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user