zmk
zmk copied to clipboard
feat: Added `toggle-mode`, allowing toggle-on and toggle-off
Added toggle-mode flag to both the key toggle and toggle layer behaviors. Toggle mode can be set to
- "on"
- "off"
- "on-off" (default when not present)
Tested locally with basic functionality. I don't see an edge case where this might cause issues.
Note that if key toggle on is spammed, it will repeatedly send over the "press" code.
Resolves #2523.
Can we please add some tests that exercise this new functionality?
Yeah, I was just thinking that. Going to do so (and fix an oopsie I noticed) and then undraft.