-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Added toggle-mode
, allowing toggle-on and toggle-off
#2555
base: main
Are you sure you want to change the base?
Conversation
63bb371
to
e668edd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
e668edd
to
c8ddadf
Compare
…explicitly toggle on or toggle off.
c8ddadf
to
4ac5b3c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://zmk.dev/docs/config/behaviors needs to be updated as well.
Co-authored-by: Cem Aksoylar <caksoylar@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM on docs, and source code.
Added
toggle-mode
flag to both the key toggle and toggle layer behaviors. Toggle mode can be set toTested 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.