c925cf02dd
when quick-release is enabled, the sticky key is released immediately after another key is pressed
27 lines
488 B
Text
27 lines
488 B
Text
/*
|
|
* Copyright (c) 2020 The ZMK Contributors
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
/ {
|
|
behaviors {
|
|
sk: behavior_sticky_key {
|
|
compatible = "zmk,behavior-sticky-key";
|
|
label = "STICKY_KEY";
|
|
#binding-cells = <1>;
|
|
release-after-ms = <1000>;
|
|
bindings = <&kp>;
|
|
};
|
|
sl: behavior_sticky_layer {
|
|
compatible = "zmk,behavior-sticky-key";
|
|
label = "STICKY_LAYER";
|
|
#binding-cells = <1>;
|
|
release-after-ms = <1000>;
|
|
bindings = <&mo>;
|
|
quick-release;
|
|
};
|
|
};
|
|
|
|
};
|
|
|