fix 'j' and 'k' inside search input

main
Tomasz Borychowski 2021-02-19 22:49:32 +00:00 committed by Ben Busby
parent 7f3a284e04
commit 03bd4b6871
1 changed files with 1 additions and 0 deletions

View File

@ -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]();