未验证 提交 4208f840 编写于 作者: J Jonah Williams 提交者: GitHub

make ios text affinity behavior match android (#5971)

上级 69b19a5f
...@@ -589,7 +589,7 @@ static UIReturnKeyType ToUIReturnKeyType(NSString* inputType) { ...@@ -589,7 +589,7 @@ static UIReturnKeyType ToUIReturnKeyType(NSString* inputType) {
} }
- (void)insertText:(NSString*)text { - (void)insertText:(NSString*)text {
_selectionAffinity = _kTextAffinityUpstream; _selectionAffinity = _kTextAffinityDownstream;
[self replaceRange:_selectedTextRange withText:text]; [self replaceRange:_selectedTextRange withText:text];
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册