From 03bd4b68710863b0eadcbee0f5eb2c5a7d1a8c4d Mon Sep 17 00:00:00 2001 From: Tomasz Borychowski Date: Fri, 19 Feb 2021 22:49:32 +0000 Subject: [PATCH] fix 'j' and 'k' inside search input --- app/static/js/keyboard.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/static/js/keyboard.js b/app/static/js/keyboard.js index 98a4a17..7fd05ef 100644 --- a/app/static/js/keyboard.js +++ b/app/static/js/keyboard.js @@ -15,6 +15,7 @@ }); document.addEventListener('keydown', (e) => { + if (e.target.tagName === 'INPUT') return true; if (typeof keymap[e.key] === 'function') { e.preventDefault(); keymap[e.key]();