mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-08-10 20:15:19 -04:00
Fixed broken forms due to search shortcuts
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user