fix(behaviors): make tap dances work on a combo

* Tap dance event handler goes after combos
* Add test
This commit is contained in:
Okke Formsma 2022-11-01 21:13:19 +01:00 committed by GitHub
parent d393247e15
commit a61eac9139
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 47 additions and 11 deletions

View file

@ -3,7 +3,7 @@
#include <dt-bindings/zmk/kscan_mock.h>
/ {
behaviors {
behaviors {
ht: hold_tap {
compatible = "zmk,behavior-hold-tap";
label = "HOLD_TAP";
@ -47,14 +47,24 @@
};
};
keymap {
compatible = "zmk,keymap";
label ="Default keymap";
combos {
compatible = "zmk,combos";
default_layer {
bindings = <
&tdm &tds
&tdb &td2>;
};
};
td_combo {
bindings = <&tdb>;
key-positions = <0 1>;
timeout-ms = <50>;
};
};
keymap {
compatible = "zmk,keymap";
label = "Default keymap";
default_layer {
bindings = <
&tdm &tds
&tdb &td2>;
};
};
};