forked from mirrors/qmk_userspace
Added cancel_key_lock function (#15321)
This commit is contained in:
parent
4461355cce
commit
7f67504993
3 changed files with 8 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue