Skip to content
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

[Bug] Holding KC_RSFT does not work when Auto Shift is active (it gets released before next keypress) #24341

Open
teddympq opened this issue Aug 29, 2024 · 1 comment

Comments

@teddympq
Copy link

teddympq commented Aug 29, 2024

Describe the Bug

When AutoShift is activated, holding KC_LSFT sends the corresponding shifted symbol or letter.
However, for some reason, KC_RSFT gets released before pressing another key.

I am not sure whether this is the intended behavior, but I decided to tinker quantum/process_keycode/process_auto_shift.c a little bit anyway.
I am by no means an expert, this is just a suggestion or question.

In line 161, I added MOD_BIT(KC_RSFT):
Before:

After:
) & (~(MOD_BIT(KC_LSFT) | MOD_BIT(KC_RSFT)))

In line 217, I added MOD_BIT(KC_RSFT)

autoshift_flags.lastshifted = (get_mods() | get_oneshot_mods()) & MOD_BIT(KC_LSFT);

After:
autoshift_flags.lastshifted = (get_mods() | get_oneshot_mods()) & (MOD_BIT(KC_LSFT) | MOD_BIT(KC_RSFT));

I tested it and it seems to be working, but I am not sure if it may cause further problems, so I decided to check with you.

@teddympq teddympq changed the title Holding KC_RSFT does not work when Auto Shift is active (it gets released before next keypress) [Bug] Holding KC_RSFT does not work when Auto Shift is active (it gets released before next keypress) Aug 29, 2024
@IsaacElenbaas
Copy link
Contributor

Yes, this was missed and your suggestions are correct. 218 and 220 should also be changed.

This issue kind of shows how effective Auto Shift is haha - it has been present for three years. There aren't that many people who use Auto Shift, but I guess none of them use the regular shift keys in parallel for any reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants