bugfix(sticky keys): release active sticky keys properly

see https://github.com/zmkfirmware/zmk/issues/445
This commit is contained in:
Okke Formsma
2020-11-29 21:25:42 +01:00
committed by Pete Johanson
parent 7babe7f185
commit 3bf770a364
6 changed files with 68 additions and 0 deletions

View File

@@ -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);
}
}
}