Fix key events in the search box
This commit is contained in:
@@ -68,7 +68,11 @@ class Keyboard{
|
||||
}
|
||||
keyEvent(event){
|
||||
var key = event.key.toLowerCase()
|
||||
if(
|
||||
if(event.target.tagName === "INPUT"){
|
||||
if(key === "escape"){
|
||||
event.preventDefault()
|
||||
}
|
||||
}else if(
|
||||
key === "escape" ||
|
||||
key === "backspace" ||
|
||||
key === "tab" ||
|
||||
|
||||
Reference in New Issue
Block a user