forked from bartvdbraak/blender
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:
parent
d22e9657a5
commit
70de23dabb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user