mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-04-26 08:36:28 +00:00
[client] imgui: respect WantCaptureKeyboard
If the overlay is active and imgui has set WantCaptureKeyboard we should ignore the escape key sequences.
This commit is contained in:
parent
7eb00bd24c
commit
8898496eba
@ -279,6 +279,8 @@ void app_handleWheelMotion(double motion)
|
||||
}
|
||||
|
||||
void app_handleKeyPress(int sc)
|
||||
{
|
||||
if (!g_state.overlayInput || !g_state.io->WantCaptureKeyboard)
|
||||
{
|
||||
if (sc == g_params.escapeKey && !g_state.escapeActive)
|
||||
{
|
||||
@ -293,6 +295,7 @@ void app_handleKeyPress(int sc)
|
||||
g_state.escapeAction = sc;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (g_state.overlayInput)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user