diff --git a/engine/src/flutter/shell/platform/darwin/macos/framework/Source/FlutterKeyboardManager.mm b/engine/src/flutter/shell/platform/darwin/macos/framework/Source/FlutterKeyboardManager.mm index 2238c300bf..8812df4e94 100644 --- a/engine/src/flutter/shell/platform/darwin/macos/framework/Source/FlutterKeyboardManager.mm +++ b/engine/src/flutter/shell/platform/darwin/macos/framework/Source/FlutterKeyboardManager.mm @@ -275,7 +275,7 @@ typedef _Nullable _NSResponderPtr (^NextResponderProvider)(); std::map mandatoryGoalsByChar; std::map usLayoutGoalsByKeyCode; - for (const LayoutGoal& goal : flutter::layoutGoals) { + for (const LayoutGoal& goal : flutter::kLayoutGoals) { if (goal.mandatory) { mandatoryGoalsByChar[goal.keyChar] = goal; } else { diff --git a/engine/src/flutter/shell/platform/darwin/macos/framework/Source/KeyCodeMap.g.mm b/engine/src/flutter/shell/platform/darwin/macos/framework/Source/KeyCodeMap.g.mm index 52229d518b..6fc5c71c78 100644 --- a/engine/src/flutter/shell/platform/darwin/macos/framework/Source/KeyCodeMap.g.mm +++ b/engine/src/flutter/shell/platform/darwin/macos/framework/Source/KeyCodeMap.g.mm @@ -245,7 +245,7 @@ const NSDictionary* modifierFlagToKeyCode = @{ const uint64_t kCapsLockPhysicalKey = 0x00070039; const uint64_t kCapsLockLogicalKey = 0x100000104; -const std::vector layoutGoals = { +const std::vector kLayoutGoals = { LayoutGoal{0x31, 0x20, false}, // Space LayoutGoal{0x27, 0x22, false}, // Quote LayoutGoal{0x2b, 0x2c, false}, // Comma diff --git a/engine/src/flutter/shell/platform/darwin/macos/framework/Source/KeyCodeMap_Internal.h b/engine/src/flutter/shell/platform/darwin/macos/framework/Source/KeyCodeMap_Internal.h index 9a7e38659f..15fe906c1b 100644 --- a/engine/src/flutter/shell/platform/darwin/macos/framework/Source/KeyCodeMap_Internal.h +++ b/engine/src/flutter/shell/platform/darwin/macos/framework/Source/KeyCodeMap_Internal.h @@ -104,6 +104,6 @@ typedef struct { * All keys that Flutter wants to derive layout for, and guides on how to derive * them. */ -extern const std::vector layoutGoals; +extern const std::vector kLayoutGoals; } // namespace flutter