From e85df21b83902926596757eaffbdd6e3bc9f9a15 Mon Sep 17 00:00:00 2001 From: Chris Bracken Date: Tue, 7 Feb 2017 18:01:19 -0800 Subject: [PATCH] Switch iOS keyboard type if required (flutter/engine#3400) Ensure that the text input keyboard is reloaded if the view keyboardType changes. --- .../darwin/ios/framework/Source/FlutterTextInputPlugin.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterTextInputPlugin.mm b/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterTextInputPlugin.mm index edd860c340..55fadf58ce 100644 --- a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterTextInputPlugin.mm +++ b/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterTextInputPlugin.mm @@ -197,6 +197,7 @@ static UIKeyboardType ToUIKeyboardType(NSString* inputType) { - (void)setTextInputClient:(int)client withConfiguration:(NSDictionary*)configuration { _view.keyboardType = ToUIKeyboardType(configuration[@"inputType"]); [_view setTextInputClient:client]; + [_view reloadInputViews]; } - (void)setTextInputEditingState:(NSDictionary*)state {