Merge pull request #675 from turtleli/fix-ctrl-and-shift-detection

windows: Fix detection of Ctrl and Shift key presses
This commit is contained in:
avih 2015-07-26 05:02:48 -07:00
commit 07648d9ea6
1 changed files with 2 additions and 0 deletions

View File

@ -25,9 +25,11 @@ int TranslateVKToWXK(u32 keysym)
switch (keysym)
{
// Shift, Control, Alt and Menu
case VK_SHIFT:
case VK_LSHIFT:
case VK_RSHIFT: key_code = WXK_SHIFT; break;
case VK_CONTROL:
case VK_LCONTROL:
case VK_RCONTROL: key_code = WXK_CONTROL; break;