Fix consumer keys w/ refactored behaviors.
This commit is contained in:
parent
8027be106e
commit
55cf9db564
20 changed files with 193 additions and 238 deletions
|
|
@ -1,8 +1,18 @@
|
|||
#include <dt-bindings/zmk/keys.h>
|
||||
|
||||
/ {
|
||||
behaviors {
|
||||
kp: behavior_key_press {
|
||||
compatible = "zmk,behavior-key-press";
|
||||
label = "KEY_PRESS";
|
||||
usage_page = <USAGE_KEYPAD>;
|
||||
#binding-cells = <1>;
|
||||
};
|
||||
|
||||
cp: behavior_consumer_press {
|
||||
compatible = "zmk,behavior-key-press";
|
||||
label = "CONSUMER_PRESS";
|
||||
usage_page = <USAGE_CONSUMER>;
|
||||
#binding-cells = <1>;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -6,3 +6,8 @@ description: Key press/release behavior
|
|||
compatible: "zmk,behavior-key-press"
|
||||
|
||||
include: one_param.yaml
|
||||
|
||||
properties:
|
||||
usage_page:
|
||||
type: int
|
||||
default: 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue