mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 06:47:19 +00:00
[client] app: allow key-repeat to work with keybinds
This commit is contained in:
parent
5a3fe151e4
commit
42ed0d7638
@ -313,6 +313,9 @@ void app_handleKeyPress(int sc)
|
||||
if (g_state.escapeActive)
|
||||
{
|
||||
g_state.escapeAction = sc;
|
||||
KeybindHandle handle = g_state.bindings[sc];
|
||||
if (handle)
|
||||
handle->callback(sc, handle->opaque);
|
||||
return;
|
||||
}
|
||||
}
|
||||
@ -358,15 +361,6 @@ void app_handleKeyRelease(int sc)
|
||||
!app_isOverlayMode())
|
||||
core_setGrab(!g_cursor.grab);
|
||||
}
|
||||
else
|
||||
{
|
||||
KeybindHandle handle = g_state.bindings[sc];
|
||||
if (handle)
|
||||
{
|
||||
handle->callback(sc, handle->opaque);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (sc == g_params.escapeKey)
|
||||
g_state.escapeActive = false;
|
||||
|
Loading…
Reference in New Issue
Block a user