diff options
author | Okke Formsma <okke@formsma.nl> | 2021-01-31 21:37:57 +0100 |
---|---|---|
committer | Pete Johanson <peter@peterjohanson.com> | 2021-02-02 15:28:16 -0500 |
commit | 9a7908b6324181403836908e90754146fb7f0b5b (patch) | |
tree | 59821b1f4b4821e559246c0fc72a582b43769624 /app/tests/hold-tap/balanced/5-quick-tap/native_posix.keymap | |
parent | 6c7ab0ce53ec75394eaa84ae303d725300cb1f45 (diff) |
behaviors(hold-tap): Implement quick_tap_ms (TAPPING_FORCE_HOLD)
Tap-and-hold a hold-tap to hold the tap behavior so it can repeat.
After a tap, if the same key is pressed within `quick_tap_ms`, the
tap behavior is always picked.
This is useful for things like `&ht LSHFT BACKSPACE` where holding
the backspace is required.
Implements #288.
Diffstat (limited to 'app/tests/hold-tap/balanced/5-quick-tap/native_posix.keymap')
-rw-r--r-- | app/tests/hold-tap/balanced/5-quick-tap/native_posix.keymap | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/app/tests/hold-tap/balanced/5-quick-tap/native_posix.keymap b/app/tests/hold-tap/balanced/5-quick-tap/native_posix.keymap new file mode 100644 index 0000000..8f90ffa --- /dev/null +++ b/app/tests/hold-tap/balanced/5-quick-tap/native_posix.keymap @@ -0,0 +1,14 @@ +#include <dt-bindings/zmk/keys.h> +#include <behaviors.dtsi> +#include <dt-bindings/zmk/kscan_mock.h> +#include "../behavior_keymap.dtsi" + + +&kscan { + events = < + ZMK_MOCK_PRESS(0,0,10) + ZMK_MOCK_RELEASE(0,0,10) + ZMK_MOCK_PRESS(0,0,400) + ZMK_MOCK_RELEASE(0,0,10) + >; +};
\ No newline at end of file |