Default to mods = 0
This commit is contained in:
parent
0a76d3119d
commit
3c3b9d82be
2 changed files with 2 additions and 2 deletions
|
@ -12,6 +12,7 @@
|
|||
compatible = "zmk,behavior-caps-word";
|
||||
label = "CAPS_WORD";
|
||||
#binding-cells = <0>;
|
||||
mods = <MOD_LSFT>;
|
||||
continue-list = <UNDERSCORE BACKSPACE DELETE>;
|
||||
ignore-alphas;
|
||||
ignore-numbers;
|
||||
|
@ -24,7 +25,6 @@
|
|||
compatible = "zmk,behavior-caps-word";
|
||||
label = "NUM_WORD";
|
||||
#binding-cells = <0>;
|
||||
mods = <0>;
|
||||
// layers = <xxx>; // to be specified in user config using &num_word {}
|
||||
continue-list = <BACKSPACE DELETE>;
|
||||
ignore-numbers;
|
||||
|
|
|
@ -194,7 +194,7 @@ static int behavior_caps_word_init(const struct device *dev) {
|
|||
static struct behavior_caps_word_data behavior_caps_word_data_##n = {.active = false}; \
|
||||
static struct behavior_caps_word_config behavior_caps_word_config_##n = { \
|
||||
.index = n, \
|
||||
.mods = DT_INST_PROP_OR(n, mods, MOD_LSFT), \
|
||||
.mods = DT_INST_PROP_OR(n, mods, 0), \
|
||||
.layers = DT_INST_PROP_OR(n, layers, -1), \
|
||||
.ignore_alphas = DT_INST_PROP(n, ignore_alphas), \
|
||||
.ignore_numbers = DT_INST_PROP(n, ignore_numbers), \
|
||||
|
|
Loading…
Add table
Reference in a new issue