[2750702] fixed: shift key is sticky in hotkeys, making you save sometimes when you meant to load

This commit is contained in:
zeromus 2009-04-18 21:25:41 +00:00
parent a05659a208
commit 6a03c7ff09
1 changed files with 3 additions and 3 deletions

View File

@ -2129,9 +2129,9 @@ int GetModifiers(int key)
if (key == VK_MENU || key == VK_CONTROL || key == VK_SHIFT) if (key == VK_MENU || key == VK_CONTROL || key == VK_SHIFT)
return 0; return 0;
if(GetAsyncKeyState(VK_MENU )) modifiers |= CUSTKEY_ALT_MASK; if(GetAsyncKeyState(VK_MENU )&0x8000) modifiers |= CUSTKEY_ALT_MASK;
if(GetAsyncKeyState(VK_CONTROL)) modifiers |= CUSTKEY_CTRL_MASK; if(GetAsyncKeyState(VK_CONTROL)&0x8000) modifiers |= CUSTKEY_CTRL_MASK;
if(GetAsyncKeyState(VK_SHIFT )) modifiers |= CUSTKEY_SHIFT_MASK; if(GetAsyncKeyState(VK_SHIFT )&0x8000) modifiers |= CUSTKEY_SHIFT_MASK;
return modifiers; return modifiers;
} }