zmk/app/dts/behaviors/caps_word.dtsi
Ryan Schenk 79aad1af77 feat(behaviors): caps-word supports alternative layouts
The problem when using alternative layouts (Colemak, Dvorak, etc) mapped
in the OS, or when using a foreign keyboard, there will be alpha
characters that the keyboard "thinks" are symbols, and therefore
caps-word will not shift them. This adds the ability to configure
caps-word to shift these keycodes so that it works as expected.
2022-10-04 20:50:05 -04:00

21 lines
386 B
Text

/*
* 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 BACKSPACE DELETE>;
also-mod-list = <>;
break-list = <>;
};
};
};