Skip to content

Commit be72bb7

Browse files
committed
Fix VIRTUAL_KEY.VK_RWIN check issue
1 parent dbe626d commit be72bb7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Flow.Launcher.Infrastructure/Hotkey/GlobalHotkey.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ public static SpecialKeyState CheckModifiers()
5252
//ALT is pressed
5353
state.AltPressed = true;
5454
}
55-
if ((PInvoke.GetKeyState((int)VIRTUAL_KEY.VK_LWIN) & 0x8000) != 0)
55+
if ((PInvoke.GetKeyState((int)VIRTUAL_KEY.VK_LWIN) & 0x8000) != 0 ||
56+
(PInvoke.GetKeyState((int)VIRTUAL_KEY.VK_RWIN) & 0x8000) != 0)
5657
{
5758
//WIN is pressed
5859
state.WinPressed = true;

0 commit comments

Comments
 (0)