Revert "Do not default to downstream affinity on iOS insertText (#13852)" (flutter/engine#14053)
This reverts commit ffe1d3fca6.
This commit is contained in:
@@ -621,9 +621,7 @@ static UIReturnKeyType ToUIReturnKeyType(NSString* inputType) {
|
||||
}
|
||||
|
||||
- (void)insertText:(NSString*)text {
|
||||
// The affinity is unknown here. Set to "" so that Flutter interprets it
|
||||
// as ambiguous and uses a fallback affinity.
|
||||
_selectionAffinity = "";
|
||||
_selectionAffinity = _kTextAffinityDownstream;
|
||||
[self replaceRange:_selectedTextRange withText:text];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user