CANCEL is obsolete

Caps-words deactivates on mod-presses in my ZMK testing branch
This commit is contained in:
urob 2022-07-30 16:12:00 -04:00
parent 48e420b1f0
commit 2e982d484f

View file

@ -97,20 +97,9 @@ ZMK_BEHAVIOR(hmr, hold_tap, // right-hand HRMs
/* custom keys and macros */ /* custom keys and macros */
// sticky-shift that cancels capsword (used in ss_cw below). Alternatively: mod-morph ss_cw into CANCEL to swallow sticky-shift when capsword is active
ZMK_BEHAVIOR(sticky_shift, macro,
wait-ms = <0>;
tap-ms = <1>;
bindings = <&macro_tap CANCEL> // cancel caps_word;
, <&macro_press &sk LSHFT> // then tap sticky-shift and hold
, <&macro_pause_for_release> // until key release to enable
, <&macro_release &sk LSHFT>; // holding shift
)
// tap: sticky shift | double tap: capsword | triple tap: cancel capsword // tap: sticky shift | double tap: capsword | triple tap: cancel capsword
ZMK_BEHAVIOR(ss_cw, tap_dance, ZMK_BEHAVIOR(ss_cw, tap_dance,
tapping-term-ms = <200>; tapping-term-ms = <200>;
// bindings = <&sticky_shift>, <&caps_word>, <CANCEL>;
bindings = <&sk LSHFT>, <&caps_word>, <CANCEL>; bindings = <&sk LSHFT>, <&caps_word>, <CANCEL>;
) )