From 4426f5f6881dc22385169ecd92d0815c19f97655 Mon Sep 17 00:00:00 2001 From: Jaime Bernardo Date: Fri, 15 Nov 2024 16:04:26 +0000 Subject: [PATCH] Fix modifier keys not changing until restart --- src/modules/ZoomIt/ZoomIt/Zoomit.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/modules/ZoomIt/ZoomIt/Zoomit.cpp b/src/modules/ZoomIt/ZoomIt/Zoomit.cpp index 7ebfced961..4b50704920 100644 --- a/src/modules/ZoomIt/ZoomIt/Zoomit.cpp +++ b/src/modules/ZoomIt/ZoomIt/Zoomit.cpp @@ -5642,6 +5642,13 @@ LRESULT APIENTRY MainWndProc( // Apply hotkey settings UnregisterAllHotkeys(hWnd); + g_ToggleMod = GetKeyMod(g_ToggleKey); + g_LiveZoomToggleMod = GetKeyMod(g_LiveZoomToggleKey); + g_DrawToggleMod = GetKeyMod(g_DrawToggleKey); + g_BreakToggleMod = GetKeyMod(g_BreakToggleKey); + g_DemoTypeToggleMod = GetKeyMod(g_DemoTypeToggleKey); + g_SnipToggleMod = GetKeyMod(g_SnipToggleKey); + g_RecordToggleMod = GetKeyMod(g_RecordToggleKey); RegisterAllHotkeys(hWnd); break;