zmkfirmware / zmk

ZMK Firmware Repository
https://zmk.dev/
MIT License
2.64k stars 2.7k forks source link

Tapping capslock quickly doesn't work on OS X #756

Open okke-formsma opened 3 years ago

okke-formsma commented 3 years ago

Macs don't register capslock if capslock is pressed and released too quickly.

also see https://github.com/tmk/tmk_keyboard/issues/390 / https://beta.docs.qmk.fm/developing-qmk/qmk-reference/config_options TAP_HOLD_CAPS_DELAY

As we don't want mac-specific delays in the codebase, we could fix this by adding a tap-duration-ms parameter to hold-taps so mac users can configure the key-up delay to 100ms so the capslock key is triggered properly. Also add an example in the docs with this specific example.

caksoylar commented 2 years ago

One workaround that is now possible is to use a macro to trigger caps lock, where the tap duration can be customized. E.g. (not tested):

ZMK_MACRO(caps_macro,
    tap-ms = <200>;
    bindings = <&kp CAPS>;
)