fix: windows chinese ime issue (#682)

This commit is contained in:
q200892907 2024-01-24 22:43:15 +08:00 • committed by GitHub
commit 3cd56020b1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
} }
} }