From 23523afd38f4731777cdfed1b3fb3e815bf3a269 Mon Sep 17 00:00:00 2001 From: Ales Novotny Date: Mon, 19 Aug 2019 00:41:14 +0200 Subject: [PATCH] fix to #6557 --- tmk_core/common/action.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/tmk_core/common/action.c b/tmk_core/common/action.c index f47fd20fc..a058ad703 100644 --- a/tmk_core/common/action.c +++ b/tmk_core/common/action.c @@ -59,10 +59,13 @@ void action_exec(keyevent_t event) if (!IS_NOEVENT(event)) { dprint("\n---- action_exec: start -----\n"); dprint("EVENT: "); debug_event(event); dprintln(); + } + #ifdef RETRO_TAPPING + if (IS_PRESSED(event)) { retro_tapping_counter++; -#endif } +#endif #ifdef FAUXCLICKY_ENABLE if (IS_PRESSED(event)) { @@ -665,9 +668,11 @@ void process_action(keyrecord_t *record, action_t action) #ifndef NO_ACTION_TAPPING #ifdef RETRO_TAPPING - if (!is_tap_action(action)) { + if (!is_tap_action(action) && event.pressed) { retro_tapping_counter = 0; - } else { + } + + if (is_tap_action(action)) { if (event.pressed) { if (tap_count > 0) { retro_tapping_counter = 0; @@ -678,7 +683,7 @@ void process_action(keyrecord_t *record, action_t action) if (tap_count > 0) { retro_tapping_counter = 0; } else { - if (retro_tapping_counter == 2) { + if (retro_tapping_counter == 1) { tap_code(action.layer_tap.code); } retro_tapping_counter = 0; -- 2.21.0 (Apple Git-120)