-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
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. |
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.
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.
38ffd0a
to
334cbe4
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.
LGTM! Thanks!
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.