[client] client: release escape key on focus loss

This prevents the escape key from being treated as held down indefinitely when
losing focus while holding the escape key.
This commit is contained in:
Quantum authored and Geoffrey McRae committed 2021-07-31 15:02:57 +10:00
1 parent 7801575d99
commit 7d78cba38c
1 file changed
+2
+2
View File
@@ -93,6 +93,8 @@ void app_handleFocusEvent(bool focused)
if (g_state.keyDown[key])
app_handleKeyRelease(key);
g_state.escapeActive = false;
if (!g_params.showCursorDot)
g_state.ds->setPointer(LG_POINTER_NONE);