Skip to content

Commit 253a7bb

Browse files
committed
[ahk] wrong escape codes (#88)
1 parent 19b98cb commit 253a7bb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kalamine/template.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def ahk_keymap(layout: "KeyboardLayout", altgr: bool = False) -> List[str]:
121121

122122
def ahk_escape(key: str) -> str:
123123
if len(key) == 1:
124-
return f"U+{ord(key):04x}" if esc_all or key in specials else key
124+
return f"U+{ord(key):04x}" if (esc_all or key in specials) else key
125125
return f"{key}`" if key.endswith("`") else key # deadkey identifier
126126

127127
def ahk_actions(symbol: str) -> Dict[str, str]:

0 commit comments

Comments
 (0)