From 555393d32864d1428c4503e8e94b82ba8701f6d3 Mon Sep 17 00:00:00 2001 From: Seraphima Zykova Date: Thu, 7 May 2020 12:21:29 +0300 Subject: [PATCH] Close Shortcut Guide on right Win release (#2751) --- src/modules/shortcut_guide/target_state.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/shortcut_guide/target_state.cpp b/src/modules/shortcut_guide/target_state.cpp index 16a2357d57..c39d06da84 100644 --- a/src/modules/shortcut_guide/target_state.cpp +++ b/src/modules/shortcut_guide/target_state.cpp @@ -49,7 +49,7 @@ bool TargetState::signal_event(unsigned vk_code, bool key_down) input[1].ki.dwFlags = KEYEVENTF_KEYUP; input[1].ki.dwExtraInfo = CommonSharedConstants::KEYBOARDMANAGER_INJECTED_FLAG; input[2].type = INPUT_KEYBOARD; - input[2].ki.wVk = VK_LWIN; + input[2].ki.wVk = vk_code; input[2].ki.dwFlags = KEYEVENTF_KEYUP; input[2].ki.dwExtraInfo = CommonSharedConstants::KEYBOARDMANAGER_INJECTED_FLAG; SendInput(3, input, sizeof(INPUT));