mirror of
https://github.com/benbusby/whoogle-search.git
synced 2025-07-09 03:04:13 -04:00
fix 'j' and 'k' inside search input
This commit is contained in:
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…
x
Reference in New Issue
Block a user