Fix VIRTUAL_KEY.VK_RWIN check issue

This commit is contained in:
Jack251970 2024-12-11 09:57:49 +08:00
parent dbe626d238
commit be72bb73aa

View file

@ -52,7 +52,8 @@ namespace Flow.Launcher.Infrastructure.Hotkey
//ALT is pressed
state.AltPressed = true;
}
if ((PInvoke.GetKeyState((int)VIRTUAL_KEY.VK_LWIN) & 0x8000) != 0)
if ((PInvoke.GetKeyState((int)VIRTUAL_KEY.VK_LWIN) & 0x8000) != 0 ||
(PInvoke.GetKeyState((int)VIRTUAL_KEY.VK_RWIN) & 0x8000) != 0)
{
//WIN is pressed
state.WinPressed = true;