zmk/app/dts/bindings/behaviors/zmk,behavior-caps-word.yaml
Joel Spadin 69c7d020c9 feat(behaviors): Allow changing caps word shifted keys
Added a shift-list property to caps word to allow adding more keys to
be shifted aside from alpha keys.

Added a &prog_word behavior, which is the same as &caps_word, except it
adds MINUS to shift-list (this matches QMK's caps word behavior).

Added a no-default-keys property to caps_word, which removes the
implicit alphanumeric keys from continue-list and shift-list so you can
fully customize the lists.

Also adjusted the default continue keys to include numpad numbers,
since those are numbers too.
2024-03-19 21:20:47 -05:00

28 lines
893 B
YAML

# Copyright (c) 2021 The ZMK Contributors
# SPDX-License-Identifier: MIT
description: Caps word behavior
compatible: "zmk,behavior-caps-word"
include: zero_param.yaml
properties:
continue-list:
type: array
required: true
description: |
List of key codes which should continue the caps word behavior but not have
modifiers applied when caps word is active.
Alphanumeric keys are included automatically unless no-default-keys is set.
shift-list:
type: array
description: |
List of key codes which should have modifiers applied when caps word is active.
Alpha keys are included automatically unless no-default-keys is set.
mods:
type: int
description: Bitmask of modifiers to apply. Default is MOD_LSFT.
no-default-keys:
type: boolean
description: Do not automatically include any keys in continue-list or shift-list.