Adding keyup to try.

This commit is contained in:
Sergiotarxz 2023-09-10 17:20:19 +02:00
parent e3c258e965
commit c3273fe2d8
2 changed files with 3 additions and 4 deletions

View File

@ -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