Commit: 6ef8c9e6461456354c5e6b95a1d5cc7176723fe0
Author: Yevgeny Makarov
Date:   Wed Oct 20 03:47:13 2021 +0200
Branches: master
https://developer.blender.org/rB6ef8c9e6461456354c5e6b95a1d5cc7176723fe0

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

===================================================================

M       intern/ghost/intern/GHOST_SystemCocoa.mm

===================================================================

diff --git a/intern/ghost/intern/GHOST_SystemCocoa.mm 
b/intern/ghost/intern/GHOST_SystemCocoa.mm
index 189e663f91a..204bbdaec50 100644
--- a/intern/ghost/intern/GHOST_SystemCocoa.mm
+++ b/intern/ghost/intern/GHOST_SystemCocoa.mm
@@ -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:

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to