-
-
Notifications
You must be signed in to change notification settings - Fork 40.1k
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
Add combo key repress feature #22858
Conversation
81d904c
to
f0173c2
Compare
Branch should be updated, but unit tests really should/need to be added. |
0f6d869
to
01904af
Compare
Thank you for your contribution! |
This has some merge conflicts that need to be resolved. |
Allows for running code for combo key repressing after release
Co-authored-by: jack <[email protected]>
Co-authored-by: jack <[email protected]>
Co-authored-by: jack <[email protected]>
Co-authored-by: jack <[email protected]>
Co-authored-by: jack <[email protected]>
Co-authored-by: jack <[email protected]>
Co-authored-by: jack <[email protected]>
Co-authored-by: jack <[email protected]>
Allows for running code for combo key repressing after release
Description
A copy-paste from new docs:
By defining
COMBO_PROCESS_KEY_REPRESS
and implementingbool process_combo_key_repress(uint16_t combo_index, combo_t *combo, uint8_t key_index, uint16_t keycode)
you can run your custom code when you repress just released key of a combo. By combining it with customprocess_combo_event
we can for example make special handling for Alt+Tab to switch windows, which, on combo F+G activation, registers Alt and presses Tab - then we can switch windows forward by releasing G and pressing it again, or backwards with F key.Types of Changes
Checklist