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:
Okke Formsma
2020-11-11 16:40:13 +01:00
committed by Pete Johanson
parent 2871dca9bf
commit e48a6b659c
20 changed files with 209 additions and 35 deletions

View File

@@ -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>;
};
};
};