mirror of
https://github.com/zmkfirmware/zmk.git
synced 2026-03-19 20:45:18 -05:00
* 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>
22 lines
406 B
Plaintext
22 lines
406 B
Plaintext
/*
|
|
* Copyright (c) 2020 The ZMK Contributors
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
#include <dt-bindings/zmk/behaviors.h>
|
|
|
|
/ {
|
|
behaviors {
|
|
#if ZMK_BEHAVIOR_OMIT(TOG)
|
|
/omit-if-no-ref/
|
|
#endif
|
|
tog: toggle_layer {
|
|
compatible = "zmk,behavior-toggle-layer";
|
|
#binding-cells = <1>;
|
|
display-name = "Toggle Layer";
|
|
locking;
|
|
};
|
|
};
|
|
};
|