mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[BUG]: Using WHKD and mostly default Komorebi alt key sticks between monitor changes #273
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @allora on GitHub (Dec 11, 2023).
Describe the bug
When using a mostly default Komorebi config and the default suggested whkd, When using Alt + HJKL to navigate to windows on a different monitor, then switching its workspace/desktop to another workspace/desktop on that monitor makes the alt key stick 100% of the time.
By "Stick" i mean that alt is registered as held, even though I am not pressing anything on the keyboard or mouse. In firefox, this manifests as downloading links when I click on them.
To resolve this I have to navigate to another window with ALT + HJKL and back to the window I want to use.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No matter where i switch to, different monitor, window, etc. I expect that alt is not "stuck" on.
Screenshots and Videos
None atm. I can try to get something if needed.
Operating System
Provide the output of
systeminfo | grep "^OS Name\|^OS Version"komorebic checkOutputProvide the output of
komorebic checkAdditional context
I have multiple displays and a fair number of windows up for work (slack, discord, multiple browser windows, internal chat services and unity/rider
@LGUG2Z commented on GitHub (Dec 12, 2023):
Hi @allora this is an issue that is known to impact a minority of users when they have
alt_focus_hackenabled in the config.You may want to check out any commit after this one:
e04ba0e033This commit (or any commit after it on the
masterbranch) implements a different approach to focus changing that doesn't rely onalt_focus_hack(ie. it can be set tofalse) - I am currently using this as are a number of users on the Discord to good results.This will be rolled out in the next release, which will most likely be in early January, but you can grab the prebuilt binaries from the latest actions job to try it out locally too if you are not in a position to build from source.
@allora commented on GitHub (Dec 12, 2023):
I'm pretty much just using the defaults.. i never set an "alt focus hack" is there a way to see if its enabled?
@LGUG2Z commented on GitHub (Dec 12, 2023):
It's enabled by default in the example config from the latest release: https://github.com/LGUG2Z/komorebi/blob/master/komorebi.example.json#L6
@allora commented on GitHub (Dec 13, 2023):
Awesome thanks! When i get time ill test out the new build and report back
@cubeDHS2017 commented on GitHub (Dec 21, 2023):
I came across this issues and decided to try using AutoHotKey to manage all of my keyboard shortcuts. Using AutoHotKey I have not had this issue with the alt key getting stuck. The other reason why it might have been fixed is because I have changed over to use the Windows key as my main modifier key (win key + 1 to go to first workspace). Since I have made these changes the alt key sticking has not been a problem.
@LGUG2Z commented on GitHub (May 12, 2024):
alt_focus_hackhas been deprecated for a while now