fixed: unable to typing non-ascii characters by default iOS soft keyboards

This commit is contained in:
TrueZhuanjia committed 2025-10-20 15:56:45 +08:00
1 parent b650ac0ca3
commit 94a8caa5df
1 file changed
+3
+3
View File
@@ -1213,6 +1213,9 @@ static const double X1_MOUSE_SPEED_DIVISOR = 2.5;
}
- (void)onKeyboardPressed:(UITextField *)textField {
if (textField.markedTextRange) return;
NSString* inputText = textField.text;
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0), ^{
// If the text became empty, we know the user pressed the backspace key.