mirror of
https://gitlab.winehq.org/wine/wine.git
synced 2024-11-19 17:06:04 -07:00
winewayland.drv: Fix release_all_keys modifier filtering
This commit is contained in:
parent
4c68b232fb
commit
4703ec176f
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue