-
-
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
fix: adding option to separate implicit mod release from key release #2334
Conversation
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.
Code seems reasonable, just a comment on an unrelated file change that snuck in. Thanks for the PR!
docs/package-lock.json
Outdated
@@ -4897,11 +4897,12 @@ | |||
} | |||
}, | |||
"node_modules/braces": { | |||
"version": "3.0.2", |
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.
Please take this file change out of this commit/PR.
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.
I'll try👍
Sorry about that.
This adds a new config value `ZMK_HID_SEPARATE_MOD_RELEASE_REPORT` where, if enabled, the report for a key release is sent separately to the accompanying modifier release signals, which are then sent in a second report. This fixes an issue where certain applications are unable to work with implicitly modified keys (e.g. colon) due to them registering the modifier release prior to the actual key release. Have tested this on my personal keyboard and `wev` now shows the signals in the correct order. => **Previously:** ```LSHIFT (pressed) -> colon (pressed) -> LSHIFT (released) -> **semi**colon (released)``` => **Now:** ```LSHIFT (pressed) -> colon (pressed) -> colon (released) -> LSHIFT (released)``` (This time without accidental files)
3989ec7
to
72ea410
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.
Just one comment on the docs portion.
@petejohanson is the phrasing ok now? |
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.
Thanks!
This adds a new config value
ZMK_HID_SEPARATE_MOD_RELEASE_REPORT
where, if enabled, the report for a key release is sent separately to the accompanying modifier release signals, which are then sent in a second report.This fixes an issue where certain applications are unable to work with implicitly modified keys (e.g. colon) due to them registering the modifier release prior to the actual key release.
Have tested this on my personal keyboard and
wev
now shows the signals in the correct order.=> Previously:
LSHIFT (pressed) -> colon (pressed) -> LSHIFT (released) -> **semi**colon (released)
=> Now:
LSHIFT (pressed) -> colon (pressed) -> colon (released) -> LSHIFT (released)