From 3ab0f4d9e521514e0d6f3cb7852656ca4dbe4a37 Mon Sep 17 00:00:00 2001 From: Carlos Quiroz Date: Sat, 17 Jun 2017 18:42:32 -0400 Subject: [PATCH 1/2] Deactivate oneshot mods once timedout --- tmk_core/common/action.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tmk_core/common/action.c b/tmk_core/common/action.c index cffc0b9eb..6e8ad43c9 100644 --- a/tmk_core/common/action.c +++ b/tmk_core/common/action.c @@ -70,6 +70,9 @@ void action_exec(keyevent_t event) dprintf("Oneshot layer: timeout\n"); clear_oneshot_layer_state(ONESHOT_OTHER_KEY_PRESSED); } + if (has_oneshot_mods_timed_out()) { + clear_oneshot_mods(); + } #endif #ifndef NO_ACTION_TAPPING From 74d752b531f4c5e90ceb3b8e55fdc68da35aa2ff Mon Sep 17 00:00:00 2001 From: Carlos Quiroz Date: Sat, 17 Jun 2017 19:48:03 -0400 Subject: [PATCH 2/2] Remove noisy debug line --- tmk_core/common/action.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tmk_core/common/action.c b/tmk_core/common/action.c index 6e8ad43c9..84e661523 100644 --- a/tmk_core/common/action.c +++ b/tmk_core/common/action.c @@ -67,7 +67,6 @@ void action_exec(keyevent_t event) #if (defined(ONESHOT_TIMEOUT) && (ONESHOT_TIMEOUT > 0)) if (has_oneshot_layer_timed_out()) { - dprintf("Oneshot layer: timeout\n"); clear_oneshot_layer_state(ONESHOT_OTHER_KEY_PRESSED); } if (has_oneshot_mods_timed_out()) {