Fixed type check error

This commit is contained in:
FlamedDogo99 2024-06-09 21:10:56 -06:00
parent e4411c09a8
commit 54b32e6034

View File

@ -430,7 +430,7 @@ function insertCanvasElements() {
} }
}, false); }, false);
hiddenInput.addEventListener("keydown", function(e) { hiddenInput.addEventListener("keydown", function(e) {
if((e.keyCode = 229 || e.which = 229) && !unsafeWindow.keyboardFix) { if((e.keyCode == 229 || e.which == 229) && !unsafeWindow.keyboardFix) {
unsafeWindow.console.warn("Switching from keydown to input events due to invalid KeyboardEvent. Some functionality will be lost.") unsafeWindow.console.warn("Switching from keydown to input events due to invalid KeyboardEvent. Some functionality will be lost.")
unsafeWindow.keyboardFix = true; unsafeWindow.keyboardFix = true;
if(unsafeWindow.lastKey) { if(unsafeWindow.lastKey) {