From 7d78cba38c3d5379375378cb86097ee98deb94a2 Mon Sep 17 00:00:00 2001 From: Quantum Date: Fri, 30 Jul 2021 21:16:07 -0400 Subject: [PATCH] [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. --- client/src/app.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/src/app.c b/client/src/app.c index aa9d9e62..d4043d52 100644 --- a/client/src/app.c +++ b/client/src/app.c @@ -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);