[client] app: update imgui key release when guest input is disabled

This commit is contained in:
Geoffrey McRae 2021-07-31 15:41:21 +10:00
parent a098bab114
commit 7eb00bd24c

View File

@ -345,15 +345,15 @@ void app_handleKeyRelease(int sc)
g_state.escapeActive = false; g_state.escapeActive = false;
} }
if (!core_inputEnabled())
return;
if (g_state.overlayInput) if (g_state.overlayInput)
{ {
g_state.io->KeysDown[sc] = false; g_state.io->KeysDown[sc] = false;
return; return;
} }
if (!core_inputEnabled())
return;
// avoid sending key up events when we didn't send a down // avoid sending key up events when we didn't send a down
if (!g_state.keyDown[sc]) if (!g_state.keyDown[sc])
return; return;