Added cancel_key_lock function (#15321)

This commit is contained in:
wheredoesyourmindgo 2021-11-29 00:17:07 -08:00 committed by GitHub
parent 4461355cce
commit 7f67504993
Failed to generate hash of commit
3 changed files with 8 additions and 1 deletions

View file

@ -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: