From d0c26aa3095b482686e2b5c6d8f5d458ab0f8dbc Mon Sep 17 00:00:00 2001 From: Bui Date: Fri, 25 Feb 2022 18:45:04 +0000 Subject: [PATCH] use more keyCode --- public/src/js/songselect.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/src/js/songselect.js b/public/src/js/songselect.js index 0010b9a..1648ee6 100644 --- a/public/src/js/songselect.js +++ b/public/src/js/songselect.js @@ -408,7 +408,7 @@ class SongSelect{ this.showWarning = false } }else if (this.search){ - if(name === "back" || (event.keyCode && event.keyCode === 70 && ctrl)) { + if(name === "back" || (event && 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){ @@ -438,7 +438,7 @@ class SongSelect{ } } }else if(this.state.screen === "song"){ - if(event && event.code === "KeyF" && ctrl){ + if(event && event.keyCode && event.keyCode === 70 && ctrl){ this.displaySearch() }else if(name === "confirm"){ this.toSelectDifficulty()