alt_focus_hack causes alt to stick with AutoHotkey
Description When using RAlt or AltGr as modifier key in AutoHotkey (possibly in whkd, didn't check that one) and alt_focus_hack option is set to true, Alt key will stick. I couldn't really figure out what the option does but it's included by default. When I set it to false everything works ok.
To Reproduce Steps to reproduce the behavior:
- Use AutoHotkey v2
- Set for example
RAlt & 1:: komorebic send-to-workspace 1or<^>!1:: "komorebic send-to-workspace 1" - Run komorebic with
"alt_focus_hack": true,in komorebi.json - When using command alt key sticks and you have to press alt to continue using keyboard normally.
Operating System
OS Name: Microsoft Windows 10 Pro
OS Version: 22H2 Build 19045.3324
I've had the same issue. If you hit left alt after it will unstick the right alt. A bit annoying but a good work around for getting it unstuck.
I solved it by disabling alt_focus_hack.
AFAIK this happens with any modifier other than alt, and with whkd as well Repro:
- have komorebi and a few windows open, focus directions bound with whkd to ctrl hjkl
- hold ctrl and spam hjkl as much as possible
- sometimes it stops and refuses to change focus because alt is stuck as pressed (it can take a few tries, but after it gets stuck once, it gets stuck a lot more)
- press and release alt and it works again
alt_focus_hack has been deprecated since a few versions ago