Skip to content

Commit 51424b2

Browse files
committed
fix: workaround for some symbols cannot be committed
1 parent fdaaec9 commit 51424b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ class KeyAction(
151151
// match like: { x: 1 } or { x: q } ...
152152
code = Keycode.keyCodeOf(unbraced)
153153
// match like: { x: "(){Left}" } (key sequence to simulate)
154-
if (unbraced.isNotEmpty() && code == KeyEvent.KEYCODE_UNKNOWN) {
154+
if (unbraced.isNotEmpty() && !Keycode.isStdKey(code)) {
155155
text = raw
156156
label = raw.replace(BRACED_STR, "")
157157
} else {

0 commit comments

Comments
 (0)