Adding keyup to try.
This commit is contained in:
parent
e3c258e965
commit
c3273fe2d8
@ -73,9 +73,8 @@ function addListenersSearch() {
|
||||
return true;
|
||||
|
||||
})
|
||||
fakeSearchInput.addEventListener('keypress', (e) => {
|
||||
console.log(e.code)
|
||||
if (e.code !== 'Enter') {
|
||||
fakeSearchInput.addEventListener('keyup', (e) => {
|
||||
if (e.keyCode !== 13) {
|
||||
return false;
|
||||
}
|
||||
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