forked from kofal.net/zmk
Refactor global bindings, implement mod-tap.
* Use extra comptible = "zmk,behavior-global" to add behaviors to global bindings for event notification. * Implement mod-tap, as a keymap binding and global one to skip tap if other keycode pressed while held.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/ {
|
||||
behaviors {
|
||||
hid_behavior: behavior_hid {
|
||||
compatible = "zmk,behavior-hid";
|
||||
compatible = "zmk,behavior-hid", "zmk,behavior-global";
|
||||
label = "HID";
|
||||
#binding-cells = <0>;
|
||||
};
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/ {
|
||||
behaviors {
|
||||
keymap_behavior: behavior_keymap {
|
||||
compatible = "zmk,behavior-keymap";
|
||||
compatible = "zmk,behavior-keymap", "zmk,behavior-global";
|
||||
label = "KEYMAP";
|
||||
#binding-cells = <0>;
|
||||
};
|
||||
|
||||
9
app/dts/behaviors/mod_tap.dtsi
Normal file
9
app/dts/behaviors/mod_tap.dtsi
Normal file
@@ -0,0 +1,9 @@
|
||||
/ {
|
||||
behaviors {
|
||||
mt: behavior_mod_tap {
|
||||
compatible = "zmk,behavior-mod-tap", "zmk,behavior-global";
|
||||
label = "MOD_TAP";
|
||||
#binding-cells = <2>;
|
||||
};
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user