Use helper for sticky-key setup

This commit is contained in:
urob 2022-08-05 10:46:37 -04:00
parent 6326048e47
commit 329583d1e6

View file

@ -118,19 +118,11 @@ ZMK_BEHAVIOR(uc_shift, macro,
, <&macro_release &mo UC &kp LSHFT>; , <&macro_release &mo UC &kp LSHFT>;
) )
/ { ZMK_BEHAVIOR(sls, sticky_key,
behaviors { release-after-ms = <1000>;
sls: sticky_uc_shift { bindings = <&uc_shift>;
compatible = "zmk,behavior-sticky-key"; ignore-modifiers;
label = "STICKY_UC_SHIFT"; )
#binding-cells = <1>;
release-after-ms = <1000>;
bindings = <&uc_shift>;
ignore-modifiers;
};
};
};
/* keymap */ /* keymap */