Skip to content

Commit ac7ef55

Browse files
author
if-can
committed
fix: key sequence cannot guide symbol and lua script mapping
1 parent 0524a7b commit ac7ef55

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

app/src/main/java/com/osfans/trime/ime/keyboard/CommonKeyboardActionListener.kt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -334,11 +334,7 @@ class CommonKeyboardActionListener(
334334
// FIXME: rime will not handle the key sequence when
335335
// ascii_mode is on, there may be a better solution
336336
// for this.
337-
if (Rime.isAsciiMode) {
338-
if (Rime.simulateKeySequence(slice)) {
339-
service.commitText(slice)
340-
}
341-
} else {
337+
if (Rime.isAsciiMode || !Rime.simulateKeySequence(slice)) {
342338
service.commitText(slice)
343339
}
344340
}

0 commit comments

Comments
 (0)