feat(behaviors): &key_repeat behavior + tests.

* Add new `&key_repeat` behavior that captures and re-sends
  the most recently triggered keycode.

Closes: #853
This commit is contained in:
Peter Johanson
2021-11-29 04:26:22 +00:00
committed by Pete Johanson
parent ac3c3170bd
commit 70bb7c9334
16 changed files with 278 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
#include <dt-bindings/zmk/keys.h>
#include <behaviors.dtsi>
#include <dt-bindings/zmk/kscan_mock.h>
/ {
keymap {
compatible = "zmk,keymap";
label = "Default keymap";
default_layer {
bindings = <
&key_repeat &kp A
&kp B &kp C_VOL_UP
>;
};
};
};