From 2a6cdf800ba0f44cf0a44a1f437cafd87a7ac2d3 Mon Sep 17 00:00:00 2001 From: jonahwilliams Date: Tue, 7 Aug 2018 21:20:53 -0700 Subject: [PATCH] make ios text affinity behavior match android --- .../darwin/ios/framework/Source/FlutterTextInputPlugin.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/platform/darwin/ios/framework/Source/FlutterTextInputPlugin.mm b/shell/platform/darwin/ios/framework/Source/FlutterTextInputPlugin.mm index dd4492d7e0069..da64123432f93 100644 --- a/shell/platform/darwin/ios/framework/Source/FlutterTextInputPlugin.mm +++ b/shell/platform/darwin/ios/framework/Source/FlutterTextInputPlugin.mm @@ -589,7 +589,7 @@ - (BOOL)hasText { } - (void)insertText:(NSString*)text { - _selectionAffinity = _kTextAffinityUpstream; + _selectionAffinity = _kTextAffinityDownstream; [self replaceRange:_selectedTextRange withText:text]; }