From 9a7908b6324181403836908e90754146fb7f0b5b Mon Sep 17 00:00:00 2001 From: Okke Formsma Date: Sun, 31 Jan 2021 21:37:57 +0100 Subject: 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. --- .../hold-tap/tap-preferred/5-quick-tap/native_posix.keymap | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 app/tests/hold-tap/tap-preferred/5-quick-tap/native_posix.keymap (limited to 'app/tests/hold-tap/tap-preferred/5-quick-tap/native_posix.keymap') diff --git a/app/tests/hold-tap/tap-preferred/5-quick-tap/native_posix.keymap b/app/tests/hold-tap/tap-preferred/5-quick-tap/native_posix.keymap new file mode 100644 index 0000000..8f90ffa --- /dev/null +++ b/app/tests/hold-tap/tap-preferred/5-quick-tap/native_posix.keymap @@ -0,0 +1,14 @@ +#include +#include +#include +#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 -- cgit v1.2.3