diff --git a/client/src/app.c b/client/src/app.c index 416433ef..58d9e304 100644 --- a/client/src/app.c +++ b/client/src/app.c @@ -406,10 +406,10 @@ void app_handleKeyboardTyped(const char * typed) void app_handleKeyboardModifiers(bool ctrl, bool shift, bool alt, bool super) { - g_state.io->KeyCtrl = ctrl; - g_state.io->KeyShift = shift; - g_state.io->KeyAlt = alt; - g_state.io->KeySuper = super; + g_state.modCtrl = ctrl; + g_state.modShift = shift; + g_state.modAlt = alt; + g_state.modSuper = super; } void app_handleKeyboardLEDs(bool numLock, bool capsLock, bool scrollLock) @@ -806,6 +806,11 @@ int app_renderOverlay(struct Rect * rects, int maxRects) struct Overlay * overlay; struct Rect buffer[MAX_OVERLAY_RECTS]; + g_state.io->KeyCtrl = g_state.modCtrl; + g_state.io->KeyShift = g_state.modShift; + g_state.io->KeyAlt = g_state.modAlt; + g_state.io->KeySuper = g_state.modSuper; + igNewFrame(); if (g_state.overlayInput) diff --git a/client/src/main.h b/client/src/main.h index 1457a1d2..b75c65c3 100644 --- a/client/src/main.h +++ b/client/src/main.h @@ -56,6 +56,10 @@ struct AppState bool overlayInput; ImGuiMouseCursor cursorLast; char * imGuiIni; + bool modCtrl; + bool modShift; + bool modAlt; + bool modSuper; bool alertShow; char * alertMessage;