Fix #29932 Left Shift + Numpad 1,2,3 not Aligning to Active

Intermediate Shift+Key messages were resetting modifier flags.
This commit is contained in:
Francisco De La Cruz 2013-04-25 05:32:32 +00:00
parent d22e9657a5
commit 70de23dabb
Notes: blender-bot 2023-02-14 08:45:12 +01:00
Referenced by issue #59854, The SHIFT key, mapped on my graphic tablet is not working in Blender 2.80
1 changed files with 11 additions and 1 deletions

View File

@ -607,7 +607,17 @@ GHOST_TKey GHOST_SystemWin32::convertKey(GHOST_IWindow *window, short vKey, shor
case VK_GR_LESS: key = GHOST_kKeyGrLess; break;
case VK_SHIFT:
key = (scanCode == 0x36) ? GHOST_kKeyRightShift : GHOST_kKeyLeftShift;
/* Check single shift presses */
if (scanCode == 0x36) {
key = GHOST_kKeyRightShift;
} else if (scanCode == 0x2a) {
key = GHOST_kKeyLeftShift;
} else {
/* Must be a combination SHIFT (Left or Right) + a Key
* Ignore this as the next message will contain
* the desired "Key" */
key = GHOST_kKeyUnknown;
}
break;
case VK_CONTROL:
key = (extend) ? GHOST_kKeyRightControl : GHOST_kKeyLeftControl;