#hold tap outputs wrong character

1 messages · Page 1 of 1 (latest)

spiral prairie
#

Hi, I have these macros:

        pair_paren: pair_paren {
            compatible = "zmk,behavior-macro";
            #binding-cells = <0>;
            bindings =
                <&macro_release>,
                <&kp LSHFT &kp RSHFT &kp LALT &kp RALT &kp LCTRL &kp RCTRL &kp LEFT_WIN &kp RWIN>,
                <&macro_tap>,
                <&kp LPAR &kp RPAR &kp LEFT>;
            label = "PAIR_PAREN";
            tap-ms = <10>;
        };
        
        pair_brace: pair_brace {
            compatible = "zmk,behavior-macro";
            #binding-cells = <0>;
            bindings =
                <&macro_release>,
                <&kp LSHFT &kp RSHFT &kp LALT &kp RALT &kp LCTRL &kp RCTRL &kp LEFT_WIN &kp RWIN>,
                <&macro_tap>,
                <&kp LBRC &kp RBRC &kp LEFT>;
            label = "PAIR_BRACE";
            tap-ms = <10>;
        };
        
        pair_bracket: pair_bracket {
            compatible = "zmk,behavior-macro";
            #binding-cells = <0>;
            bindings =
                <&macro_release>,
                <&kp LSHFT &kp RSHFT &kp LALT &kp RALT &kp LCTRL &kp RCTRL &kp LEFT_WIN &kp RWIN>,
                <&macro_tap>,
                <&kp LBKT &kp RBKT &kp LEFT>;
            label = "PAIR_BRACKET";
            tap-ms = <10>;
        };

I expect them to type (), {} and [], but instead they type `, \ and .

What's going on here??

#

and in my keymap I define them like such: &mt &pair_brace LBRC
&mt &pair_paren LPAR
&mt &pair_bracket LBKT

vague yew
silk plume
#

You cannot use &mt with macros, you need to define new hold tap behaviors