@@ -89,8 +89,8 @@ RegisterHotKeys() {
8989
9090 ; Modifiers
9191 for modifier, _ in KeyDef.modifier_code {
92- if modifier == " LWin" or modifier == " RWin"
93- continue ; do not register Win keys for now
92+ if modifier == " LWin" or modifier == " RWin" or modifier == " LAlt " or modifier == " RAlt "
93+ continue ; do not register Win / Alt keys for now
9494 local mask := KeyDef.mask[modifier]
9595 Hotkey (" $" . modifier, ProcessKey.Bind(modifier, mask))
9696 Hotkey (" $" . modifier . " Up" , ProcessKey.Bind(modifier, mask | up ))
@@ -103,10 +103,12 @@ RegisterHotKeys() {
103103 Hotkey (" $" . key, ProcessKey.Bind(key, 0 ))
104104 ; need specify left/right to prevent fallback to modifier down/up hotkeys
105105 Hotkey (" $<^" . key, ProcessKey.Bind(key, ctrl ))
106- if not key = " Tab"
107- Hotkey (" $<!" . key, ProcessKey.Bind(key, alt ))
106+ ; do not register Alt + single key now
107+ ; if not key = "Tab" {
108+ ; Hotkey("$<!" . key, ProcessKey.Bind(key, alt))
109+ ; Hotkey("$>!" . key, ProcessKey.Bind(key, alt))
110+ ; }
108111 Hotkey (" $>^" . key, ProcessKey.Bind(key, ctrl ))
109- Hotkey (" $>!" . key, ProcessKey.Bind(key, alt ))
110112 Hotkey (" $^!" . key, ProcessKey.Bind(key, ctrl | alt ))
111113 Hotkey (" $!#" . key, ProcessKey.Bind(key, alt | win))
112114
0 commit comments