File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -1154,9 +1154,17 @@ - (void)slk_enableTypingSuggestionIfNeeded
1154
1154
1155
1155
BOOL enable = !self.isAutoCompleting ;
1156
1156
1157
+ NSString *inputPrimaryLanguage = self.textView .textInputMode .primaryLanguage ;
1158
+
1157
1159
// Toggling autocorrect on Japanese keyboards breaks autocompletion by replacing the autocompletion prefix by an empty string.
1158
1160
// So for now, let's not disable autocorrection for Japanese.
1159
- if ([self .textView.textInputMode.primaryLanguage isEqualToString: @" ja-JP" ]) {
1161
+ if ([inputPrimaryLanguage isEqualToString: @" ja-JP" ]) {
1162
+ return ;
1163
+ }
1164
+
1165
+ // Let's avoid refreshing the text view while dictation mode is enabled.
1166
+ // This solves a crash some users were experiencing when auto-completing with the dictation input mode.
1167
+ if ([inputPrimaryLanguage isEqualToString: @" dictation" ]) {
1160
1168
return ;
1161
1169
}
1162
1170
You can’t perform that action at this time.
0 commit comments