From 94f5e260114eb0d2c73b1b931018988b1d692e1e Mon Sep 17 00:00:00 2001 From: Fabien Cazenave Date: Mon, 5 Feb 2024 13:47:09 +0100 Subject: [PATCH] [ahk] wrong escape codes (#88) --- kalamine/template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kalamine/template.py b/kalamine/template.py index 3c79d04..71c4348 100644 --- a/kalamine/template.py +++ b/kalamine/template.py @@ -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]: