diff --git a/lib/src/editor/editor_component/service/ime/non_delta_input_service.dart b/lib/src/editor/editor_component/service/ime/non_delta_input_service.dart index f5d0af403..efef0d680 100644 --- a/lib/src/editor/editor_component/service/ime/non_delta_input_service.dart +++ b/lib/src/editor/editor_component/service/ime/non_delta_input_service.dart @@ -1,3 +1,4 @@ +import 'dart:io'; import 'dart:math'; import 'package:appflowy_editor/appflowy_editor.dart'; @@ -192,6 +193,11 @@ class NonDeltaTextInputService extends TextInputService with TextInputClient { ) : delta.composing; } + + // solve the issue where the Chinese IME doesn't continue deleting after the input content has been deleted. + if (Platform.isMacOS && (composingTextRange?.isCollapsed ?? false)) { + composingTextRange = TextRange.empty; + } } }