diff options
author | Peter Johanson <peter@peterjohanson.com> | 2021-06-09 06:10:20 +0000 |
---|---|---|
committer | Pete Johanson <peter@peterjohanson.com> | 2021-11-28 22:41:35 -0500 |
commit | 54dabffd0d371595a8142ee4da4f5d888a310cda (patch) | |
tree | bcbdc884b7de743d9804d51ec9355b22c6cff50d /app/tests/caps-word/continue-with-non-alpha-continue-list-item/native_posix.keymap | |
parent | 30ed2375335acf47da0216c6832ecfd30ea7097c (diff) |
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.
Diffstat (limited to 'app/tests/caps-word/continue-with-non-alpha-continue-list-item/native_posix.keymap')
-rw-r--r-- | app/tests/caps-word/continue-with-non-alpha-continue-list-item/native_posix.keymap | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/app/tests/caps-word/continue-with-non-alpha-continue-list-item/native_posix.keymap b/app/tests/caps-word/continue-with-non-alpha-continue-list-item/native_posix.keymap new file mode 100644 index 0000000..68c3249 --- /dev/null +++ b/app/tests/caps-word/continue-with-non-alpha-continue-list-item/native_posix.keymap @@ -0,0 +1,21 @@ +#include <dt-bindings/zmk/keys.h> +#include <behaviors.dtsi> +#include <dt-bindings/zmk/kscan_mock.h> +#include "../behavior_keymap.dtsi" + +&caps_word { + continue-list = <UNDERSCORE MINUS>; +}; + +&kscan { + events = < + ZMK_MOCK_PRESS(0,0,10) + ZMK_MOCK_RELEASE(0,0,10) + ZMK_MOCK_PRESS(0,1,10) + ZMK_MOCK_RELEASE(0,1,10) + ZMK_MOCK_PRESS(1,1,10) + ZMK_MOCK_RELEASE(1,1,10) + ZMK_MOCK_PRESS(0,1,10) + ZMK_MOCK_RELEASE(0,1,10) + >; +};
\ No newline at end of file |