X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=tmk_core%2Fcommon%2Faction.c;h=84e6615237a8f4b2b49c44a58d052e58bb382222;hb=62214986013ee6596afa55023f7a95a8527d910f;hp=f73b0fe807a7f2fec83c09e900948b064de697cc;hpb=c5d3faace526d2fe69758ee38c4adb173553c74f;p=qmk_firmware.git diff --git a/tmk_core/common/action.c b/tmk_core/common/action.c index f73b0fe80..84e661523 100644 --- a/tmk_core/common/action.c +++ b/tmk_core/common/action.c @@ -67,9 +67,11 @@ 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()) { + clear_oneshot_mods(); + } #endif #ifndef NO_ACTION_TAPPING @@ -324,9 +326,10 @@ void process_action(keyrecord_t *record, action_t action) tp_buttons |= (1<<2); break; default: - mousekey_on(action.key.code); - mousekey_send(); + break; } + mousekey_on(action.key.code); + mousekey_send(); } else { switch (action.key.code) { case KC_MS_BTN1: @@ -339,9 +342,10 @@ void process_action(keyrecord_t *record, action_t action) tp_buttons &= ~(1<<2); break; default: - mousekey_off(action.key.code); - mousekey_send(); + break; } + mousekey_off(action.key.code); + mousekey_send(); } break; #endif