Browse Source

feat(behaviors): Add DEL/BSPC to continue list.

* Continue caps word on delete/backspace by
  default now.

Co-authored-by: Cem Aksoylar <caksoylar@users.noreply.github.com>
xmkb
Peter Johanson 3 years ago committed by Pete Johanson
parent
commit
1e8224c296
  1. 2
      app/dts/behaviors/caps_word.dtsi
  2. 3
      docs/docs/behaviors/caps-word.md

2
app/dts/behaviors/caps_word.dtsi

@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@
compatible = "zmk,behavior-caps-word";
label = "CAPS_WORD";
#binding-cells = <0>;
continue-list = <UNDERSCORE>;
continue-list = <UNDERSCORE BACKSPACE DELETE>;
};
};
};

3
docs/docs/behaviors/caps-word.md

@ -23,8 +23,7 @@ Example: @@ -23,8 +23,7 @@ Example:
#### Continue List
By default, the caps word will remain active when any alphanumeric character or the underscore (`UNDERSCORE`) characters are pressed. Any other keycode sent,
will turn off caps word. If you would like to override this, you can set a new array of keys in the `continue-list` property in your keymap:
By default, the caps word will remain active when any alphanumeric character or underscore (`UNDERSCORE`), backspace (`BACKSPACE`), or delete (`DELETE`) characters are pressed. Any other non-modifier keycode sent will turn off caps word. If you would like to override this, you can set a new array of keys in the `continue-list` property in your keymap:
```
&caps_word {

Loading…
Cancel
Save