[Feature] Send a dummy keycode to neutralize flashing modifiers in retro tap and key overrides (#20992)
This commit is contained in:
parent
baf2891124
commit
1abf8f3e8b
8 changed files with 311 additions and 1 deletions
|
@ -528,6 +528,13 @@ void process_action(keyrecord_t *record, action_t action) {
|
|||
unregister_code(action.key.code);
|
||||
} else {
|
||||
ac_dprintf("MODS_TAP: No tap: add_mods\n");
|
||||
# if defined(RETRO_TAPPING) && defined(DUMMY_MOD_NEUTRALIZER_KEYCODE)
|
||||
// Send a dummy keycode to neutralize flashing modifiers
|
||||
// if the key was held and then released with no interruptions.
|
||||
if (retro_tapping_counter == 2) {
|
||||
neutralize_flashing_modifiers(get_mods());
|
||||
}
|
||||
# endif
|
||||
unregister_mods(mods);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue