File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -362,6 +362,15 @@ - (void)setTypingSuggestionEnabled:(BOOL)enabled
362
362
return ;
363
363
}
364
364
365
+ // Toggling autocorrect on Japanese keyboards breaks autocompletion.
366
+ // If you try typing "@" on a Japanese keyboard toggling the autocomplete causes iOS
367
+ // to set the textView's text to an empty string.
368
+ // My thought is that this is caused by the same mechanism that forces autocorrection
369
+ // to be committed when refreshing the first responder.
370
+ if ([self .textInputMode.primaryLanguage isEqualToString: @" ja-JP" ]) {
371
+ return ;
372
+ }
373
+
365
374
self.autocorrectionType = enabled ? UITextAutocorrectionTypeDefault : UITextAutocorrectionTypeNo;
366
375
self.spellCheckingType = enabled ? UITextSpellCheckingTypeDefault : UITextSpellCheckingTypeNo;
367
376
You can’t perform that action at this time.
0 commit comments