* 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.
20 lines
370 B
Text
20 lines
370 B
Text
/*
|
|
* Copyright (c) 2020 The ZMK Contributors
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
#include <dt-bindings/zmk/behaviors.h>
|
|
|
|
/ {
|
|
behaviors {
|
|
#if ZMK_BEHAVIOR_OMIT(KP)
|
|
/omit-if-no-ref/
|
|
#endif
|
|
kp: key_press {
|
|
compatible = "zmk,behavior-key-press";
|
|
#binding-cells = <1>;
|
|
display-name = "Key Press";
|
|
};
|
|
};
|
|
};
|