Skip to content

Commit

Permalink
make ios text affinity behavior match android (flutter#5971)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahwilliams authored Aug 8, 2018
1 parent 69b19a5 commit 4208f84
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ - (BOOL)hasText {
}

- (void)insertText:(NSString*)text {
_selectionAffinity = _kTextAffinityUpstream;
_selectionAffinity = _kTextAffinityDownstream;
[self replaceRange:_selectedTextRange withText:text];
}

Expand Down

0 comments on commit 4208f84

Please sign in to comment.