Originally created by @skotom on GitHub (Aug 25, 2023).
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 1 or <^>!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
Originally created by @skotom on GitHub (Aug 25, 2023).
**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:
1. Use AutoHotkey v2
2. Set for example `RAlt & 1:: komorebic send-to-workspace 1` or `<^>!1:: "komorebic send-to-workspace 1"`
4. Run komorebic with `"alt_focus_hack": true,` in komorebi.json
5. 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
```
adam
added the bug label 2026-01-05 14:49:12 +01:00
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.
@joegoggin commented on GitHub (Aug 25, 2023):
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.
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
@silvarc141 commented on GitHub (Sep 3, 2023):
AFAIK this happens with any modifier other than alt, and with whkd as well
Repro:
1. have komorebi and a few windows open, focus directions bound with whkd to ctrl hjkl
2. hold ctrl and spam hjkl as much as possible
3. 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)
4. press and release alt and it works again
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @skotom on GitHub (Aug 25, 2023).
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:
RAlt & 1:: komorebic send-to-workspace 1or<^>!1:: "komorebic send-to-workspace 1""alt_focus_hack": true,in komorebi.jsonOperating System
@joegoggin commented on GitHub (Aug 25, 2023):
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.
@skotom commented on GitHub (Aug 25, 2023):
I solved it by disabling alt_focus_hack.
@silvarc141 commented on GitHub (Sep 3, 2023):
AFAIK this happens with any modifier other than alt, and with whkd as well
Repro:
@LGUG2Z commented on GitHub (May 12, 2024):
alt_focus_hackhas been deprecated since a few versions ago