keydown -> keypress
This commit is contained in:
parent
1a8886cfb2
commit
e3c258e965
|
@ -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
Loading…
Reference in New Issue