feat: Allow layer behaviors to "lock" layers on (#2717)

* refactor(core)!: Allow layer behaviors to "lock" layers on

Co-authored-by: Cem Aksoylar <caksoylar@users.noreply.github.com>

* docs: Added documentation note on locking layers

Co-authored-by: Cem Aksoylar <caksoylar@users.noreply.github.com>

---------

Co-authored-by: Cem Aksoylar <caksoylar@users.noreply.github.com>
This commit is contained in:
Nicolas Munnich
2025-11-14 22:13:35 +00:00
committed by GitHub
parent f9be3ed9c0
commit 5138c6fb14
34 changed files with 433 additions and 75 deletions

View File

@@ -72,10 +72,10 @@ static void update_layer_state(struct temp_layer_state *state, bool activate) {
state->is_active = activate;
if (activate) {
zmk_keymap_layer_activate(state->toggle_layer);
zmk_keymap_layer_activate(state->toggle_layer, false);
LOG_DBG("Layer %d activated", state->toggle_layer);
} else {
zmk_keymap_layer_deactivate(state->toggle_layer);
zmk_keymap_layer_deactivate(state->toggle_layer, false);
LOG_DBG("Layer %d deactivated", state->toggle_layer);
}
}