zmk/app/dts/behaviors/key_tap.dtsi
Marco Sterbik cb50620f9f Behaviours: add key-tap behavior
This is a solution for keys that use the same keycode but different
modifiers (see #1076 as an example, also { and [ or ] and } might occur
quite often).

The new key behavior introduced here is a simple tap that immediately
sends a release event, so that a keypress of the same keycode with a
different modifier can be detected immediately.
2022-06-04 18:08:39 +02:00

15 lines
244 B
Text

/*
* Copyright (c) 2022 The ZMK Contributors
*
* SPDX-License-Identifier: MIT
*/
/ {
behaviors {
/omit-if-no-ref/ kt: behavior_key_tap {
compatible = "zmk,behavior-key-tap";
label = "KEY_TAP";
#binding-cells = <1>;
};
};
};