* Use defines to keep either all behaviors with omits, or selective behaviors with explicit kept behavior, before including `behavior.dtsi` in keymaps. * Default ZMK_BEHAVIORS_KEEP_ALL when building with the studio RPC endpoint snippet.
23 lines
482 B
Text
23 lines
482 B
Text
/*
|
|
* Copyright (c) 2021 The ZMK Contributors
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
#include <dt-bindings/zmk/behaviors.h>
|
|
#include <dt-bindings/zmk/keys.h>
|
|
|
|
/ {
|
|
behaviors {
|
|
#if ZMK_BEHAVIOR_OMIT(CAPS_WORD)
|
|
/omit-if-no-ref/
|
|
#endif
|
|
caps_word: caps_word {
|
|
compatible = "zmk,behavior-caps-word";
|
|
#binding-cells = <0>;
|
|
continue-list = <UNDERSCORE BACKSPACE DELETE>;
|
|
display-name = "Caps Word";
|
|
};
|
|
};
|
|
};
|
|
|