Hey, when using the lm macro from the zmk docs I've noticed that if you have multiple lm keys setup for a single layer if you press 2 or more of them and then release one, the layer gets removed while youre still holding a lm key.
I have my keyboard setup to go to a qwerty layer when any of the modifiers (except shift) is pressed; sometimes I go to press something like meta+i to go to settings but I accidentally tap and release alt and it goes to the original layer and presses meta+L instead, locking my pc. does anyone know of a good way to fix this behaviour? I think having a separate duplicated layer for each modifier could work but thats a bit janky.
I was also thinking that if there is a way to check for the other keys being released before releasing the layer? something along the lines of this:
lm: lm {
compatible = "zmk,behavior-macro-two-param";
wait-ms = <0>;
tap-ms = <0>;
#binding-cells = <2>;
bindings
= <¯o_param_1to1>
, <¯o_press &mo MACRO_PLACEHOLDER>
, <¯o_param_2to1>
, <¯o_press &kp MACRO_PLACEHOLDER>
, <¯o_pause_for_release>
, <¯o_param_2to1>
, <¯o_release &kp MACRO_PLACEHOLDER>
, <¯o_param_1to1>
// if all modifiers are released
, <¯o_release &mo MACRO_PLACEHOLDER>
// else
// return
;
};