bugfix(sticky keys): release active sticky keys properly
see https://github.com/zmkfirmware/zmk/issues/445
This commit is contained in:
parent
7babe7f185
commit
3bf770a364
6 changed files with 68 additions and 0 deletions
|
|
@ -213,6 +213,8 @@ static int sticky_key_keycode_state_changed_listener(const struct zmk_event_head
|
|||
sticky_key->modified_key_usage_page == ev->usage_page &&
|
||||
sticky_key->modified_key_keycode == ev->keycode) {
|
||||
release_sticky_key_behavior(sticky_key, ev->timestamp);
|
||||
stop_timer(sticky_key);
|
||||
clear_sticky_key(sticky_key);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue