forked from mirrors/qmk_userspace
Fix swap-hands tapping.
This is an inelegant hack for #2522 but makes things work. Basically we give `action.c` a chance to handle the hold event early so that we can swap the keyboard for later keys. Later, to allow the hold to happen again quickly we nuke the key record so that tapping is reset. I tried to find a cleaner way, honestly.
This commit is contained in:
parent
23ac2a02ef
commit
5d771039ad
4 changed files with 50 additions and 9 deletions
|
@ -96,6 +96,10 @@ void clear_keyboard_but_mods(void);
|
|||
void layer_switch(uint8_t new_layer);
|
||||
bool is_tap_key(keypos_t key);
|
||||
|
||||
#ifndef NO_ACTION_TAPPING
|
||||
void process_record_tap_hint(keyrecord_t *record);
|
||||
#endif
|
||||
|
||||
/* debug */
|
||||
void debug_event(keyevent_t event);
|
||||
void debug_record(keyrecord_t record);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue