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