未验证 提交 0d60e1a3 编写于 作者: G Gary Qian 提交者: GitHub

Do not default to downstream affinity on iOS insertText (#13852)

上级 9c683668
......@@ -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];
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册