File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
shell/platform/darwin/ios/framework/Source Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ - (void)handlePress:(nonnull FlutterUIPressProxy*)press
132132 NSString * characters = getEventCharacters (press.key .characters , press.key .keyCode );
133133 NSString * charactersIgnoringModifiers =
134134 getEventCharacters (press.key .charactersIgnoringModifiers , press.key .keyCode );
135- NSMutableDictionary * keyMessage = [@{
135+ NSMutableDictionary * keyMessage = [[ @{
136136 @" keymap" : @" ios" ,
137137 @" type" : type,
138138 @" keyCode" : @(press.key .keyCode ),
@@ -141,7 +141,7 @@ - (void)handlePress:(nonnull FlutterUIPressProxy*)press
141141 @" charactersIgnoringModifiers" : charactersIgnoringModifiers == nil
142142 ? @" "
143143 : charactersIgnoringModifiers,
144- } mutableCopy];
144+ } mutableCopy] autorelease ] ;
145145 [self .channel sendMessage: keyMessage
146146 reply: ^(id reply) {
147147 bool handled = reply ? [[reply valueForKey: @" handled" ] boolValue ] : true ;
You can’t perform that action at this time.
0 commit comments