forked from kofal.net/zmk
feat: Add the ability to keep/omit behaviors for a given build.
* 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.
This commit is contained in:
committed by
Pete Johanson
parent
d77e400eb9
commit
fd28eab179
@@ -4,11 +4,16 @@
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
|
||||
#include <dt-bindings/zmk/behaviors.h>
|
||||
#include <dt-bindings/zmk/keys.h>
|
||||
|
||||
/ {
|
||||
behaviors {
|
||||
/omit-if-no-ref/ gresc: grave_escape {
|
||||
#if ZMK_BEHAVIOR_OMIT(GRESC)
|
||||
/omit-if-no-ref/
|
||||
#endif
|
||||
gresc: grave_escape {
|
||||
compatible = "zmk,behavior-mod-morph";
|
||||
#binding-cells = <0>;
|
||||
bindings = <&kp ESC>, <&kp GRAVE>;
|
||||
|
||||
Reference in New Issue
Block a user