Adding keyup to try.
This commit is contained in:
parent
e3c258e965
commit
c3273fe2d8
@ -73,9 +73,8 @@ function addListenersSearch() {
|
|||||||
return true;
|
return true;
|
||||||
|
|
||||||
})
|
})
|
||||||
fakeSearchInput.addEventListener('keypress', (e) => {
|
fakeSearchInput.addEventListener('keyup', (e) => {
|
||||||
console.log(e.code)
|
if (e.keyCode !== 13) {
|
||||||
if (e.code !== 'Enter') {
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
const searchOverlay = document.querySelector('div.search-overlay');
|
const searchOverlay = document.querySelector('div.search-overlay');
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user