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 {
sls: sticky_uc_shift {
compatible = "zmk,behavior-sticky-key";
label = "STICKY_UC_SHIFT";
#binding-cells = <1>;
release-after-ms = <1000>; release-after-ms = <1000>;
bindings = <&uc_shift>; bindings = <&uc_shift>;
ignore-modifiers; ignore-modifiers;
}; )
};
};
/* keymap */ /* keymap */