diff --git a/client/src/app.c b/client/src/app.c index d4043d52..96ae9c0e 100644 --- a/client/src/app.c +++ b/client/src/app.c @@ -345,15 +345,15 @@ void app_handleKeyRelease(int sc) g_state.escapeActive = false; } - if (!core_inputEnabled()) - return; - if (g_state.overlayInput) { g_state.io->KeysDown[sc] = false; return; } + if (!core_inputEnabled()) + return; + // avoid sending key up events when we didn't send a down if (!g_state.keyDown[sc]) return;