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.
21 lines
386 B
Text
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 = <>;
|
|
};
|
|
};
|
|
};
|
|
|