Fixed broken forms due to search shortcuts

This commit is contained in:
squidfunk
2017-07-25 16:08:05 +02:00
committed by Martin Donath
parent 993fb4782c
commit fce9e77c26
4 changed files with 4 additions and 4 deletions

View File

@@ -334,8 +334,8 @@ function initialize(config) { // eslint-disable-line func-style
return false
}
/* Search is closed */
} else {
/* Search is closed and we're not inside a form */
} else if (document.activeElement && !document.activeElement.form) {
/* F/S: Open search if not in input field */
if (ev.keyCode === 70 || ev.keyCode === 83) {