You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For now, I've solved the issue by replacing L85 with: layer_state_set(saved_layer_state);
It fix the problem (and also fix the led indicator on the Moonlander) but I'm not sure it's the proper solution.
The text was updated successfully, but these errors were encountered:
Describe the Bug
I've defined this method to have autoshift on the layer 0 only:
If I switch to a layer other than 0, autoshift is disabled (which is fine). But if I play a dynamic macro (even empty), the autoshift is now enabled.
My understanding is that https://github.com/qmk/qmk_firmware/blob/master/quantum/process_keycode/process_dynamic_macro.c#L76 reset the layer to 0 and properly call
layer_state_set_user
but restoring the saved state usinglayer_state = saved_layer_state;
(https://github.com/qmk/qmk_firmware/blob/master/quantum/process_keycode/process_dynamic_macro.c#L85) doesn't calllayer_state_set_user
.For now, I've solved the issue by replacing L85 with:
layer_state_set(saved_layer_state);
It fix the problem (and also fix the led indicator on the Moonlander) but I'm not sure it's the proper solution.
The text was updated successfully, but these errors were encountered: