From 329583d1e660f65cfddd1ad32683a07f5742ee29 Mon Sep 17 00:00:00 2001 From: urob <978080+urob@users.noreply.github.com> Date: Fri, 5 Aug 2022 10:46:37 -0400 Subject: [PATCH] Use helper for sticky-key setup --- config/base.keymap | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/config/base.keymap b/config/base.keymap index 6c55573..127c048 100644 --- a/config/base.keymap +++ b/config/base.keymap @@ -118,19 +118,11 @@ ZMK_BEHAVIOR(uc_shift, macro, , <¯o_release &mo UC &kp LSHFT>; ) -/ { - behaviors { - sls: sticky_uc_shift { - compatible = "zmk,behavior-sticky-key"; - label = "STICKY_UC_SHIFT"; - #binding-cells = <1>; - release-after-ms = <1000>; - bindings = <&uc_shift>; - ignore-modifiers; - }; - }; -}; - +ZMK_BEHAVIOR(sls, sticky_key, + release-after-ms = <1000>; + bindings = <&uc_shift>; + ignore-modifiers; +) /* keymap */