This brings the 'global-quick-tap' functionality to combos by filtering out candidate combos that fell within their own quick tap term. I also replaced `return 0` with `return ZMK_EV_EVENT_BUBBLE` where appropriate. (I assume this was done in past as it is similar to errno returning, but being that this is to signify an event type I find this more clear)
28 lines
503 B
YAML
28 lines
503 B
YAML
# Copyright (c) 2020, The ZMK Contributors
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
description: Combos container
|
|
|
|
compatible: "zmk,combos"
|
|
|
|
child-binding:
|
|
description: "A combo"
|
|
|
|
properties:
|
|
bindings:
|
|
type: phandle-array
|
|
required: true
|
|
key-positions:
|
|
type: array
|
|
required: true
|
|
timeout-ms:
|
|
type: int
|
|
default: 50
|
|
global-quick-tap-ms:
|
|
type: int
|
|
default: -1
|
|
slow-release:
|
|
type: boolean
|
|
layers:
|
|
type: array
|
|
default: [-1]
|