mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
make ios text affinity behavior match android (flutter/engine#5971)
This commit is contained in:
parent
9944a6b80a
commit
f9378b453c
@ -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