forked from kofal.net/zmk
(feature) Add &to keycode/behavior (#489)
feat(behaviors): Add `&to` behavior to switch to a layer.
This commit is contained in:
22
app/tests/to-layer/behavior_keymap.dtsi
Normal file
22
app/tests/to-layer/behavior_keymap.dtsi
Normal file
@@ -0,0 +1,22 @@
|
||||
#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 = <
|
||||
&to 0 &to 1
|
||||
&kp A &kp S>;
|
||||
};
|
||||
|
||||
second_layer {
|
||||
bindings = <
|
||||
&to 0 &to 1
|
||||
&kp J &kp K>;
|
||||
};
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user