diff options
author | Joe Wasson <jwasson+github@gmail.com> | 2018-03-12 10:22:49 -0700 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2018-03-16 16:33:43 -0400 |
commit | 5d771039adf23fe9cb8de5843a3d799dc73a2fc7 (patch) | |
tree | 043471b02358c3f7cbe848886fc5bcd850049fa7 /tmk_core/common/action_tapping.c | |
parent | 23ac2a02ef870dce91318a4d98e3c8ec5749bced (diff) | |
download | qmk_firmware-5d771039adf23fe9cb8de5843a3d799dc73a2fc7.tar.gz |
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.
Diffstat (limited to 'tmk_core/common/action_tapping.c')
-rw-r--r-- | tmk_core/common/action_tapping.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tmk_core/common/action_tapping.c b/tmk_core/common/action_tapping.c index 531a3ca34..6280c6c36 100644 --- a/tmk_core/common/action_tapping.c +++ b/tmk_core/common/action_tapping.c @@ -263,7 +263,7 @@ bool process_tapping(keyrecord_t *keyp) return true; } } else { - // FIX: process_aciton here? + // FIX: process_action here? // timeout. no sequential tap. debug("Tapping: End(Timeout after releasing last tap): "); debug_event(event); debug("\n"); @@ -277,6 +277,7 @@ bool process_tapping(keyrecord_t *keyp) if (event.pressed && is_tap_key(event.key)) { debug("Tapping: Start(Press tap key).\n"); tapping_key = *keyp; + process_record_tap_hint(&tapping_key); waiting_buffer_scan_tap(); debug_tapping_key(); return true; |