forked from kofal.net/zmk
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:
committed by
Pete Johanson
parent
ac3c3170bd
commit
70bb7c9334
19
app/dts/behaviors/key_repeat.dtsi
Normal file
19
app/dts/behaviors/key_repeat.dtsi
Normal file
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
* Copyright (c) 2021 The ZMK Contributors
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#include <dt-bindings/zmk/keys.h>
|
||||
|
||||
/ {
|
||||
behaviors {
|
||||
/omit-if-no-ref/ key_repeat: behavior_key_repeat {
|
||||
compatible = "zmk,behavior-key-repeat";
|
||||
label = "KEY_REPEAT";
|
||||
#binding-cells = <0>;
|
||||
usage-pages = <HID_USAGE_KEY>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user