fix: windows chinese ime issue (#682)
This commit is contained in:
parent
137de7e933
commit
3cd56020b1
1 changed files with 2 additions and 1 deletions
|
|
@ -1,3 +1,4 @@
|
||||||
|
import 'dart:io';
|
||||||
import 'dart:math';
|
import 'dart:math';
|
||||||
|
|
||||||
import 'package:appflowy_editor/appflowy_editor.dart';
|
import 'package:appflowy_editor/appflowy_editor.dart';
|
||||||
|
|
@ -194,7 +195,7 @@ class NonDeltaTextInputService extends TextInputService with TextInputClient {
|
||||||
}
|
}
|
||||||
|
|
||||||
// solve the issue where the Chinese IME doesn't continue deleting after the input content has been deleted.
|
// solve the issue where the Chinese IME doesn't continue deleting after the input content has been deleted.
|
||||||
if (composingTextRange?.isCollapsed ?? false) {
|
if (Platform.isMacOS && (composingTextRange?.isCollapsed ?? false)) {
|
||||||
composingTextRange = TextRange.empty;
|
composingTextRange = TextRange.empty;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue