summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/keyboard.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/keyboard.c b/common/keyboard.c
index cd1ceb420c..2dee51d4b8 100644
--- a/common/keyboard.c
+++ b/common/keyboard.c
@@ -619,6 +619,10 @@ void keyboard_task(void)
Kdebug("FAIL SAFE: clear all keys(default layer).\n");
clear_keyboard();
current_layer = default_layer;
+ fn_state_bits = 0;
+ delayed_fn = (keyrecord_t){};
+ waiting_key = (keyrecord_t){};
+ NEXT(IDLE);
}
}