getreuer / qmk-keymap

My keymap & reusable QMK gems
Apache License 2.0
300 stars 45 forks source link

[Bug] caps lock on layer not working with achordion #46

Open david-amirault opened 9 months ago

david-amirault commented 9 months ago

Describe the bug

Two keys on opposite sides of the keyboard, in their normal qwerty positions:

X is a mod-tap control key, K is a layer-tap key. In the layer toggled by K, X corresponds to caps lock.

K down -> X down -> X up -> K up

This key sequence does not enable caps lock, unless I wait for achordion_timeout() after K down.

Caps word works as expected in this use case, just not caps lock.

I suspect this is related to the following https://github.com/qmk/qmk_firmware/blob/master/docs/feature_macros.md:

If the keycode is KC_CAPS, it waits TAP_HOLD_CAPS_DELAY milliseconds instead (default 80), as macOS prevents accidental Caps Lock activation by waiting for the key to be held for a certain amount of time.

Performed on MacOS, ZSA Moonlander with caps word and key repeat elsewhere in the keymap, and with all achordion mods set to eager.

Information

Do the keys involved use any of the following features?