use keyCode

This commit is contained in:
Bui 2022-02-25 18:41:03 +00:00
parent ca9c602b67
commit e8547b027c

View File

@ -408,7 +408,7 @@ class SongSelect{
this.showWarning = false
}
}else if (this.search){
if(name === "back" || (event && event.code === "KeyF" && ctrl)) {
if(name === "back" || (event.keyCode && event.keyCode === 70 && ctrl)) {
this.removeSearch(true)
}else if(name === "down" && this.search.results.length){
if(this.search.input == document.activeElement && this.search.results){