forked from kofal.net/zmk
fix momentary layer bug when top layer is not &trans
Key release events released keys on the wrong layer if the 'top layer' was not &trans above the &mo key. base <&mo 1> layer 1 <&kp B> This was caused by overwriting `zmk_keymap_active_behavior_layer[position]` after the &mo key was handled.
This commit is contained in:
committed by
Pete Johanson
parent
2871dca9bf
commit
e48a6b659c
@@ -10,19 +10,13 @@
|
||||
default_layer {
|
||||
bindings = <
|
||||
&kp B &mo 1
|
||||
&kp D &kp G>;
|
||||
&trans &trans>;
|
||||
};
|
||||
|
||||
lower_layer {
|
||||
layer_1 {
|
||||
bindings = <
|
||||
&kp C_NEXT &trans
|
||||
&kp L &kp J>;
|
||||
};
|
||||
|
||||
raise_layer {
|
||||
bindings = <
|
||||
&kp W &kp U
|
||||
&kp X &kp M>;
|
||||
&trans &trans>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user