From fb1476d1e39ce86f792823dbd9be8040035a7ae6 Mon Sep 17 00:00:00 2001 From: Bryce Fisher-Fleig Date: Thu, 4 Jun 2020 14:35:49 -0700 Subject: [PATCH] fix: don't jump away from form input to search bar Addresses #1020 with the suggestion from prior PR #1101 --- src/theme/searcher/searcher.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/theme/searcher/searcher.js b/src/theme/searcher/searcher.js index 7fd97d48..e1cc806b 100644 --- a/src/theme/searcher/searcher.js +++ b/src/theme/searcher/searcher.js @@ -311,7 +311,7 @@ window.search = window.search || {}; // Eventhandler for keyevents on `document` function globalKeyHandler(e) { - if (e.altKey || e.ctrlKey || e.metaKey || e.shiftKey || e.target.type === 'textarea') { return; } + if (e.altKey || e.ctrlKey || e.metaKey || e.shiftKey || e.target.type === 'textarea' || e.target.type === 'text') { return; } if (e.keyCode === ESCAPE_KEYCODE) { e.preventDefault();