This is the first commit introducing custom lock behavior. Currently does nothing, except existing and that one can reference it in the keyboard layout not dissimilar to e.g. `&none`. The code is also orientated along the latter for right now, ready to be extended. Signed-off-by: Sophie Tyalie <dev@flowerpot.me>
15 lines
258 B
Text
15 lines
258 B
Text
/*
|
|
* Copyright (c) 2022 The ZMK Contributors
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
/ {
|
|
behaviors {
|
|
/omit-if-no-ref/ lock: behavior_custom_lock {
|
|
compatible = "zmk,behavior-custom-lock";
|
|
label = "CUSTOM LOCK";
|
|
#binding-cells = <0>;
|
|
};
|
|
};
|
|
};
|