Skip to content

Commit fb1476d

Browse files
authored
fix: don't jump away from form input to search bar
Addresses #1020 with the suggestion from prior PR #1101
1 parent b375f4e commit fb1476d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/theme/searcher/searcher.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ window.search = window.search || {};
311311

312312
// Eventhandler for keyevents on `document`
313313
function globalKeyHandler(e) {
314-
if (e.altKey || e.ctrlKey || e.metaKey || e.shiftKey || e.target.type === 'textarea') { return; }
314+
if (e.altKey || e.ctrlKey || e.metaKey || e.shiftKey || e.target.type === 'textarea' || e.target.type === 'text') { return; }
315315

316316
if (e.keyCode === ESCAPE_KEYCODE) {
317317
e.preventDefault();

0 commit comments

Comments
 (0)