cfd0d3d81a
To combine multiple sticky modifiers, the sticky keys must ignore other (sticky) modifier keypresses. This behavior is important for "callum-style mods", where all modifiers are sticky mods. Fixes #829
28 lines
543 B
Text
28 lines
543 B
Text
/*
|
|
* Copyright (c) 2020 The ZMK Contributors
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
/ {
|
|
behaviors {
|
|
/omit-if-no-ref/ sk: behavior_sticky_key {
|
|
compatible = "zmk,behavior-sticky-key";
|
|
label = "STICKY_KEY";
|
|
#binding-cells = <1>;
|
|
release-after-ms = <1000>;
|
|
bindings = <&kp>;
|
|
ignore-modifiers;
|
|
};
|
|
/omit-if-no-ref/ sl: behavior_sticky_layer {
|
|
compatible = "zmk,behavior-sticky-key";
|
|
label = "STICKY_LAYER";
|
|
#binding-cells = <1>;
|
|
release-after-ms = <1000>;
|
|
bindings = <&mo>;
|
|
quick-release;
|
|
};
|
|
};
|
|
|
|
};
|
|
|