From 95c4bf5854d8a13b755b8c07d97b17c004bce3c5 Mon Sep 17 00:00:00 2001 From: theaquamarine Date: Tue, 5 May 2020 08:21:55 +0100 Subject: [PATCH] Enable FancyZones to react to right Windows key (#2624) Check the status of VK_RWIN as well as VK_LWIN Fixes #436 --- src/modules/fancyzones/lib/FancyZones.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/fancyzones/lib/FancyZones.cpp b/src/modules/fancyzones/lib/FancyZones.cpp index 816f57f63a..12095df566 100644 --- a/src/modules/fancyzones/lib/FancyZones.cpp +++ b/src/modules/fancyzones/lib/FancyZones.cpp @@ -347,7 +347,7 @@ FancyZones::OnKeyDown(PKBDLLHOOKSTRUCT info) noexcept { // Return true to swallow the keyboard event 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) { bool const ctrl = GetAsyncKeyState(VK_CONTROL) & 0x8000;