Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 4180503

Browse files
committed
Update iOS KeyCodeMap dictionary literal
1 parent 0d36479 commit 4180503

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

shell/platform/darwin/ios/BUILD.gn

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ source_set("flutter_framework_source_arc") {
6868
"framework/Source/FlutterTextInputPlugin.mm",
6969
"framework/Source/FlutterTextureRegistryRelay.h",
7070
"framework/Source/FlutterTextureRegistryRelay.mm",
71+
"framework/Source/KeyCodeMap.g.mm",
72+
"framework/Source/KeyCodeMap_Internal.h",
7173
"framework/Source/UIViewController+FlutterScreenAndSceneIfLoaded.h",
7274
"framework/Source/UIViewController+FlutterScreenAndSceneIfLoaded.mm",
7375
]
@@ -129,8 +131,6 @@ source_set("flutter_framework_source") {
129131
"framework/Source/FlutterView.mm",
130132
"framework/Source/FlutterViewController.mm",
131133
"framework/Source/FlutterViewController_Internal.h",
132-
"framework/Source/KeyCodeMap.g.mm",
133-
"framework/Source/KeyCodeMap_Internal.h",
134134
"framework/Source/SemanticsObject.h",
135135
"framework/Source/SemanticsObject.mm",
136136
"framework/Source/accessibility_bridge.h",

shell/platform/darwin/ios/framework/Source/KeyCodeMap.g.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@
329329
};
330330

331331
API_AVAILABLE(ios(13.4))
332-
NSDictionary<NSString*, NSNumber*>* specialKeyMapping = [[NSDictionary alloc] initWithDictionary:@{
332+
NSDictionary<NSString*, NSNumber*>* specialKeyMapping = @{
333333
@"UIKeyInputEscape" : @(0x10000001b),
334334
@"UIKeyInputF1" : @(0x100000801),
335335
@"UIKeyInputF2" : @(0x100000802),
@@ -351,7 +351,7 @@
351351
@"UIKeyInputEnd" : @(0x10000000d),
352352
@"UIKeyInputPageUp" : @(0x100000308),
353353
@"UIKeyInputPageDown" : @(0x100000307),
354-
}];
354+
};
355355

356356
const uint64_t kCapsLockPhysicalKey = 0x00070039;
357357
const uint64_t kCapsLockLogicalKey = 0x100000104;

0 commit comments

Comments
 (0)