make ios text affinity behavior match android (flutter/engine#5971)

This commit is contained in:
Jonah Williams
2018-08-08 10:54:29 -07:00
committed by GitHub
parent 9944a6b80a
commit f9378b453c

View File

@@ -589,7 +589,7 @@ static UIReturnKeyType ToUIReturnKeyType(NSString* inputType) {
}
- (void)insertText:(NSString*)text {
_selectionAffinity = _kTextAffinityUpstream;
_selectionAffinity = _kTextAffinityDownstream;
[self replaceRange:_selectedTextRange withText:text];
}