Fix T65532: can't assign a key on Italian apple keyboards.
Apple's international keyboards have an additional `kVK_ISO_Section` key. With some (Italian, Spanish) keyboard layouts, this is `\`, `[` keys which Blender keymap can use. Right now this key is explicitly set as `Unknown`. Note that `kVK_ANSI_Grave` is located in a different location. Differential Revision: https://developer.blender.org/D12905
This commit is contained in:
parent
f6af3d9197
commit
6ef8c9e646
Notes:
blender-bot
2023-02-14 05:51:15 +01:00
Referenced by issue #65532, can't remap Italian keyboard in keymap preferences
|
@ -116,8 +116,6 @@ static GHOST_TKey convertKey(int rawCode, unichar recvChar, UInt16 keyAction)
|
|||
case kVK_ANSI_Z: return GHOST_kKeyZ;
|
||||
#endif
|
||||
/* Numbers keys: mapped to handle some int'l keyboard (e.g. French). */
|
||||
case kVK_ISO_Section:
|
||||
return GHOST_kKeyUnknown;
|
||||
case kVK_ANSI_1:
|
||||
return GHOST_kKey1;
|
||||
case kVK_ANSI_2:
|
||||
|
@ -257,6 +255,7 @@ static GHOST_TKey convertKey(int rawCode, unichar recvChar, UInt16 keyAction)
|
|||
case kVK_ANSI_LeftBracket: return GHOST_kKeyLeftBracket;
|
||||
case kVK_ANSI_RightBracket: return GHOST_kKeyRightBracket;
|
||||
case kVK_ANSI_Grave: return GHOST_kKeyAccentGrave;
|
||||
case kVK_ISO_Section: return GHOST_kKeyUnknown;
|
||||
#endif
|
||||
case kVK_VolumeUp:
|
||||
case kVK_VolumeDown:
|
||||
|
|
Loading…
Reference in New Issue