mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-23 22:31:46 +00:00
[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:
parent
7801575d99
commit
7d78cba38c
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue