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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
34 changed files with 433 additions and 75 deletions

View file

@ -1,3 +1,3 @@
layer_changed: layer 2 state 1
layer_changed: layer 2 state 1 locked 1
pressed: usage_page 0x07 keycode 0x06 implicit_mods 0x00 explicit_mods 0x00
released: usage_page 0x07 keycode 0x06 implicit_mods 0x00 explicit_mods 0x00

View file

@ -1,4 +1,4 @@
layer_changed: layer 1 state 1
layer_changed: layer 2 state 1
layer_changed: layer 1 state 1 locked 1
layer_changed: layer 2 state 1 locked 1
pressed: usage_page 0x07 keycode 0x06 implicit_mods 0x00 explicit_mods 0x00
released: usage_page 0x07 keycode 0x06 implicit_mods 0x00 explicit_mods 0x00