[2750702] fixed: shift key is sticky in hotkeys, making you save sometimes when you meant to load
This commit is contained in:
parent
a05659a208
commit
6a03c7ff09
|
@ -2129,9 +2129,9 @@ int GetModifiers(int key)
|
|||
if (key == VK_MENU || key == VK_CONTROL || key == VK_SHIFT)
|
||||
return 0;
|
||||
|
||||
if(GetAsyncKeyState(VK_MENU )) modifiers |= CUSTKEY_ALT_MASK;
|
||||
if(GetAsyncKeyState(VK_CONTROL)) modifiers |= CUSTKEY_CTRL_MASK;
|
||||
if(GetAsyncKeyState(VK_SHIFT )) modifiers |= CUSTKEY_SHIFT_MASK;
|
||||
if(GetAsyncKeyState(VK_MENU )&0x8000) modifiers |= CUSTKEY_ALT_MASK;
|
||||
if(GetAsyncKeyState(VK_CONTROL)&0x8000) modifiers |= CUSTKEY_CTRL_MASK;
|
||||
if(GetAsyncKeyState(VK_SHIFT )&0x8000) modifiers |= CUSTKEY_SHIFT_MASK;
|
||||
return modifiers;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue