Skip to content

Commit

Permalink
fix: workaround for some symbols cannot be committed
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiredPlanck committed Nov 22, 2024
1 parent fdaaec9 commit 51424b2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ class KeyAction(
// match like: { x: 1 } or { x: q } ...
code = Keycode.keyCodeOf(unbraced)
// match like: { x: "(){Left}" } (key sequence to simulate)
if (unbraced.isNotEmpty() && code == KeyEvent.KEYCODE_UNKNOWN) {
if (unbraced.isNotEmpty() && !Keycode.isStdKey(code)) {
text = raw
label = raw.replace(BRACED_STR, "")
} else {
Expand Down

0 comments on commit 51424b2

Please sign in to comment.