Skip to content

Commit

Permalink
fix: setting ascii_mode to true in composing state causes symbol to b…
Browse files Browse the repository at this point in the history
…e repeated commits
  • Loading branch information
if-can committed Jan 20, 2025
1 parent 23dfb72 commit 2ccaeac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ class CommonKeyboardActionListener(
// FIXME: rime will not handle the key sequence when
// ascii_mode is on, there may be a better solution
// for this.
if (Rime.isAsciiMode || !Rime.simulateKeySequence(slice)) {
if ((!Rime.simulateKeySequence(slice) || Rime.isAsciiMode) && !Rime.isComposing) {
service.commitText(slice)
}
}
Expand Down

0 comments on commit 2ccaeac

Please sign in to comment.