Skip to content

Commit 4208f84

Browse files
author
Jonah Williams
authored
make ios text affinity behavior match android (flutter#5971)
1 parent 69b19a5 commit 4208f84

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

shell/platform/darwin/ios/framework/Source/FlutterTextInputPlugin.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ - (BOOL)hasText {
589589
}
590590

591591
- (void)insertText:(NSString*)text {
592-
_selectionAffinity = _kTextAffinityUpstream;
592+
_selectionAffinity = _kTextAffinityDownstream;
593593
[self replaceRange:_selectedTextRange withText:text];
594594
}
595595

0 commit comments

Comments
 (0)