zmk/app/dts
Sophie Tyalie 34d9eb0e96 Behavior: Add custom lock functionality
Custom lock behavior can now be defined and actively used in the
keyboard.

A lock is toggled by typing a key, containing reference to the root
variable definition (`compatible = "zmk,behavior-custom-lock.yaml"`).

In order to have "A pressed -> Lock pressed -> A released" behave
correctly, this commit introduces a queue for currently pressed keys.
A release of such a key would then release the previous used behavior,
instead of the behavior the current lock state would suggest.

The size of the queue can be adjusted with `ZMK_BHV_LOCK_KEY_MAX_HELD`

Signed-off-by: Sophie Tyalie <dev@flowerpot.me>
2022-11-17 16:52:46 +01:00
..
behaviors Behavior: Change way lock keys are defined in dts 2022-11-17 13:14:57 +01:00
bindings Behavior: Add custom lock functionality 2022-11-17 16:52:46 +01:00
common chore(core): replace Pete Johanson with The ZMK Contributors 2021-01-16 11:30:37 -05:00
behaviors.dtsi Behavior: Add custom lock functionality 2022-11-17 16:52:46 +01:00