From e8547b027c5ac2a46528ee3a5101cedbd67519a9 Mon Sep 17 00:00:00 2001 From: Bui Date: Fri, 25 Feb 2022 18:41:03 +0000 Subject: [PATCH] use keyCode --- public/src/js/songselect.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/js/songselect.js b/public/src/js/songselect.js index ecb328b..0010b9a 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 && 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){