summaryrefslogtreecommitdiff
path: root/quantum/process_keycode/process_key_lock.c
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/process_keycode/process_key_lock.c')
-rw-r--r--quantum/process_keycode/process_key_lock.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/quantum/process_keycode/process_key_lock.c b/quantum/process_keycode/process_key_lock.c
index 4bd58f0c1e..941a2c5780 100644
--- a/quantum/process_keycode/process_key_lock.c
+++ b/quantum/process_keycode/process_key_lock.c
@@ -56,6 +56,11 @@ static inline uint16_t translate_keycode(uint16_t keycode) {
}
}
+void cancel_key_lock(void) {
+ watching = false;
+ UNSET_KEY_STATE(0x0);
+}
+
bool process_key_lock(uint16_t *keycode, keyrecord_t *record) {
// We start by categorizing the keypress event. In the event of a down
// event, there are several possibilities: