X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=tmk_core%2Fcommon%2Faction.c;h=41de01485342a856edc11414249adc2942e36031;hb=91683d56fa5c9cf9893219b3dac269e20a2c7251;hp=cffc0b9ebe1c994ee53edad4a072c08b5d97fd30;hpb=732a115b32a9c6aa529c53ef52a9689b5901411d;p=qmk_firmware.git diff --git a/tmk_core/common/action.c b/tmk_core/common/action.c index cffc0b9eb..41de01485 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 @@ -617,6 +619,7 @@ void register_code(uint8_t code) #endif add_key(KC_CAPSLOCK); send_keyboard_report(); + wait_ms(100); del_key(KC_CAPSLOCK); send_keyboard_report(); } @@ -627,6 +630,7 @@ void register_code(uint8_t code) #endif add_key(KC_NUMLOCK); send_keyboard_report(); + wait_ms(100); del_key(KC_NUMLOCK); send_keyboard_report(); } @@ -637,6 +641,7 @@ void register_code(uint8_t code) #endif add_key(KC_SCROLLLOCK); send_keyboard_report(); + wait_ms(100); del_key(KC_SCROLLLOCK); send_keyboard_report(); }