keydown -> keypress

This commit is contained in:
Sergiotarxz 2023-09-10 17:14:15 +02:00
parent 1a8886cfb2
commit e3c258e965
2 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ function addListenersSearch() {
return true; return true;
}) })
fakeSearchInput.addEventListener('keydown', (e) => { fakeSearchInput.addEventListener('keypress', (e) => {
console.log(e.code) console.log(e.code)
if (e.code !== 'Enter') { if (e.code !== 'Enter') {
return false; return false;

File diff suppressed because one or more lines are too long