zmk icon indicating copy to clipboard operation
zmk copied to clipboard

feat: Added `toggle-mode`, allowing toggle-on and toggle-off

Open nmunnich opened this issue 1 year ago • 1 comments

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.

nmunnich avatar Oct 15 '24 22:10 nmunnich

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.

nmunnich avatar Oct 15 '24 23:10 nmunnich