Skip to content

Commit

Permalink
[ahk] wrong escape codes (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabi1cazenave committed Feb 5, 2024
1 parent 3603374 commit 64d35ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kalamine/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def ahk_keymap(layout: "KeyboardLayout", altgr: bool = False) -> List[str]:

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

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

0 comments on commit 64d35ed

Please sign in to comment.