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

Commit 183b390

Browse files
committed
Update iOS KeyCodeMap dictionary literal
1 parent 6dc91bf commit 183b390

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
@@ -64,6 +64,8 @@ source_set("flutter_framework_source_arc") {
6464
"framework/Source/FlutterTextInputDelegate.h",
6565
"framework/Source/FlutterTextInputPlugin.h",
6666
"framework/Source/FlutterTextInputPlugin.mm",
67+
"framework/Source/KeyCodeMap.g.mm",
68+
"framework/Source/KeyCodeMap_Internal.h",
6769
]
6870

6971
frameworks = [
@@ -127,8 +129,6 @@ source_set("flutter_framework_source") {
127129
"framework/Source/FlutterView.mm",
128130
"framework/Source/FlutterViewController.mm",
129131
"framework/Source/FlutterViewController_Internal.h",
130-
"framework/Source/KeyCodeMap.g.mm",
131-
"framework/Source/KeyCodeMap_Internal.h",
132132
"framework/Source/SemanticsObject.h",
133133
"framework/Source/SemanticsObject.mm",
134134
"framework/Source/UIViewController+FlutterScreenAndSceneIfLoaded.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)