-
-
Notifications
You must be signed in to change notification settings - Fork 39.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stuck modifier after layer switch #579
Comments
I'm seeing a similar issue. reproduction steps: You will now be stuck with that modifier key active until you press MO->press modifier->release modifier->release MO It seems like the modifier key triggers the modifier state on keydown and removes it on keyup, but when you press then change layers then release you are now keyup-ing the key on the bottom layer, which won't turn the modifier off |
One possible fix would be to trigger keyup on all keys when leaving a MOmentary layer, but that could have some weird side effects. |
I found a solution to my problem in #182. There is already a framework in place to make modifiers 'weak' so that they will be cleared on a layer change. This is a better version of my first suggestion above. |
Even better, 182 got merged. From the readme: Prevent stuck modifiers Consider the following scenario: Layer 0 has a key defined as Shift. If such situation bothers you add this to your config.h: #define PREVENT_STUCK_MODIFIERS |
Thank you @lordchair this completely solves my problem. Added that to my keymap config and it works as expected. |
* add dz60rgb_ani;dz60rgb_wkl default keymap * Create kbdfans_kbdmini_default.json
I saw this have been raised before, but since I'm experiencing a similar problem on the current version here is a new issue.
Using a plank when I hold
ctrl
and then hold the raise layer to access a symbol if I release first thectrl
key and then the raise layer the modifier gets stuck.I notice this using emacs, for a brief moment I thought I was using vim on visual mode 😜
The text was updated successfully, but these errors were encountered: