winewayland.drv: Fix release_all_keys modifier filtering

This commit is contained in:
yuri_k7 2024-08-03 22:21:31 +02:00 committed by YuriK7
parent 4c68b232fb
commit 4703ec176f

View file

@ -629,8 +629,8 @@ static void release_all_keys(HWND hwnd)
{ {
/* Skip mouse buttons. */ /* Skip mouse buttons. */
if (vkey < 7 && vkey != VK_CANCEL) continue; if (vkey < 7 && vkey != VK_CANCEL) continue;
/* Skip left/right-agnostic modifier vkeys. */ /* Skip modifier vkeys. */
if (vkey == VK_SHIFT || vkey == VK_CONTROL || vkey == VK_MENU) continue; if (vkey == VK_SHIFT || vkey == VK_CONTROL || vkey == VK_MENU || (vkey >= VK_LSHIFT && vkey <= VK_RMENU)) continue;
if (state[vkey] & 0x80) if (state[vkey] & 0x80)
{ {