mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
make ios text affinity behavior match android (#5971)
This commit is contained in:
parent
69b19a5f55
commit
4208f84043
@ -589,7 +589,7 @@ static UIReturnKeyType ToUIReturnKeyType(NSString* inputType) {
|
||||
}
|
||||
|
||||
- (void)insertText:(NSString*)text {
|
||||
_selectionAffinity = _kTextAffinityUpstream;
|
||||
_selectionAffinity = _kTextAffinityDownstream;
|
||||
[self replaceRange:_selectedTextRange withText:text];
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user