fix 'j' and 'k' inside search input
parent
7f3a284e04
commit
03bd4b6871
|
@ -15,6 +15,7 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
document.addEventListener('keydown', (e) => {
|
document.addEventListener('keydown', (e) => {
|
||||||
|
if (e.target.tagName === 'INPUT') return true;
|
||||||
if (typeof keymap[e.key] === 'function') {
|
if (typeof keymap[e.key] === 'function') {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
keymap[e.key]();
|
keymap[e.key]();
|
||||||
|
|
Loading…
Reference in New Issue