komorebi icon indicating copy to clipboard operation
komorebi copied to clipboard

alt_focus_hack causes alt to stick with AutoHotkey

Open skotom opened this issue 2 years ago • 3 comments

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"
  3. Run komorebic with "alt_focus_hack": true, in komorebi.json
  4. 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

skotom avatar Aug 25 '23 17:08 skotom

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 avatar Aug 25 '23 17:08 joegoggin

I solved it by disabling alt_focus_hack.

skotom avatar Aug 25 '23 19:08 skotom

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

silvarc141 avatar Sep 03 '23 00:09 silvarc141

alt_focus_hack has been deprecated since a few versions ago

LGUG2Z avatar May 12 '24 18:05 LGUG2Z