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.
15 lines
244 B
Text
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>;
|
|
};
|
|
};
|
|
};
|