Update #49 - Fix unclosable pause menu glitch

This commit is contained in:
lax1dude
2025-01-26 15:23:47 -08:00
parent ed97c1ac00
commit ad900211dd
47 changed files with 1051 additions and 274 deletions

View File

@ -370,7 +370,7 @@ async function initPlatformInput(inputImports) {
}
window.addEventListener("keydown", /** @type {function(Event)} */ (currentEventListeners.keydown = function(/** KeyboardEvent */ evt) {
if(integratedServerCrashPanelShowing) {
if(!integratedServerCrashPanelShowing) {
evt.preventDefault();
evt.stopPropagation();
}
@ -383,7 +383,7 @@ async function initPlatformInput(inputImports) {
}));
window.addEventListener("keyup", /** @type {function(Event)} */ (currentEventListeners.keyup = function(/** KeyboardEvent */ evt) {
if(integratedServerCrashPanelShowing) {
if(!integratedServerCrashPanelShowing) {
evt.preventDefault();
evt.stopPropagation();
}