mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 20:27:36 +02:00
Enable FancyZones to react to right Windows key (#2624)
Check the status of VK_RWIN as well as VK_LWIN Fixes #436
This commit is contained in:
@@ -347,7 +347,7 @@ FancyZones::OnKeyDown(PKBDLLHOOKSTRUCT info) noexcept
|
|||||||
{
|
{
|
||||||
// Return true to swallow the keyboard event
|
// Return true to swallow the keyboard event
|
||||||
bool const shift = GetAsyncKeyState(VK_SHIFT) & 0x8000;
|
bool const shift = GetAsyncKeyState(VK_SHIFT) & 0x8000;
|
||||||
bool const win = GetAsyncKeyState(VK_LWIN) & 0x8000;
|
bool const win = GetAsyncKeyState(VK_LWIN) & 0x8000 || GetAsyncKeyState(VK_RWIN) & 0x8000;
|
||||||
if (win && !shift)
|
if (win && !shift)
|
||||||
{
|
{
|
||||||
bool const ctrl = GetAsyncKeyState(VK_CONTROL) & 0x8000;
|
bool const ctrl = GetAsyncKeyState(VK_CONTROL) & 0x8000;
|
||||||
|
|||||||
Reference in New Issue
Block a user