summaryrefslogtreecommitdiff
path: root/app/tests/caps-word/continue-with-non-alpha-continue-list-item/native_posix.keymap
diff options
context:
space:
mode:
authorPeter Johanson <peter@peterjohanson.com>2021-06-09 06:10:20 +0000
committerPete Johanson <peter@peterjohanson.com>2021-11-28 22:41:35 -0500
commit54dabffd0d371595a8142ee4da4f5d888a310cda (patch)
treebcbdc884b7de743d9804d51ec9355b22c6cff50d /app/tests/caps-word/continue-with-non-alpha-continue-list-item/native_posix.keymap
parent30ed2375335acf47da0216c6832ecfd30ea7097c (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.keymap21
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