feat(behaviors): Add caps word (&caps_word).

* Add new `&caps_word` behavior that acts like caps lock, but
  releases automatically when any "break" keycode is pressed.
This commit is contained in:
Peter Johanson
2021-06-09 06:10:20 +00:00
committed by Pete Johanson
parent 30ed237533
commit 54dabffd0d
20 changed files with 457 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
/*
* Copyright (c) 2021 The ZMK Contributors
*
* SPDX-License-Identifier: MIT
*/
#include <dt-bindings/zmk/keys.h>
/ {
behaviors {
/omit-if-no-ref/ caps_word: behavior_caps_word {
compatible = "zmk,behavior-caps-word";
label = "CAPS_WORD";
#binding-cells = <0>;
continue-list = <UNDERSCORE>;
};
};
};