Fix #4742: Ctrl+Enter doesn't work on search bar.
The search form uses a <button type="submit"> tag instead of a <input type="submit"> tag. It uses a <button> because it contains an icon and <input> tags can't contain nested tags.
This commit is contained in:
@@ -45,7 +45,7 @@ Shortcuts.initialize_data_shortcuts = function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
Shortcuts.submit_form = function(event) {
|
Shortcuts.submit_form = function(event) {
|
||||||
$(event.target).parents("form").find('input[type="submit"]').click();
|
$(event.target).parents("form").find('[type="submit"]').click();
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user