Skip to content

Commit

Permalink
fix: solve the problem that Chinese ime cannot continue deleting afte…
Browse files Browse the repository at this point in the history
…r deleting input content (#672)
  • Loading branch information
q200892907 authored Jan 13, 2024
1 parent 3d373be commit 1d4bc26
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,11 @@ class NonDeltaTextInputService extends TextInputService with TextInputClient {
delta is TextEditingDeltaNonTextUpdate) {
composingTextRange = delta.composing;
}

// solve the issue where the Chinese IME doesn't continue deleting after the input content has been deleted.
if (composingTextRange?.isCollapsed ?? false) {
composingTextRange = TextRange.empty;
}
}
}

Expand Down

0 comments on commit 1d4bc26

Please sign in to comment.