Skip to content

Commit

Permalink
fix: windows chinese ime issue (#682)
Browse files Browse the repository at this point in the history
  • Loading branch information
q200892907 authored Jan 24, 2024
1 parent 137de7e commit 3cd5602
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'dart:io';
import 'dart:math';

import 'package:appflowy_editor/appflowy_editor.dart';
Expand Down Expand Up @@ -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.
if (composingTextRange?.isCollapsed ?? false) {
if (Platform.isMacOS && (composingTextRange?.isCollapsed ?? false)) {
composingTextRange = TextRange.empty;
}
}
Expand Down

0 comments on commit 3cd5602

Please sign in to comment.