Revert "Do not default to downstream affinity on iOS insertText (#13852)" (flutter/engine#14053)

This reverts commit ffe1d3fca6.
This commit is contained in:
Gary Qian
2019-11-28 07:34:40 +09:00
committed by GitHub
parent 92b7f5f264
commit e4ba568098

View File

@@ -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];
}