Browse Source

fix(sticky keys): use correct timestamp when clearing sticky key in timer

xmkb
Okke Formsma 4 years ago committed by Pete Johanson
parent
commit
2ba16c2f3d
  1. 2
      app/src/behaviors/behavior_sticky_key.c

2
app/src/behaviors/behavior_sticky_key.c

@ -234,7 +234,7 @@ void behavior_sticky_key_timer_handler(struct k_work *item) {
if (sticky_key->timer_is_cancelled) { if (sticky_key->timer_is_cancelled) {
sticky_key->timer_is_cancelled = false; sticky_key->timer_is_cancelled = false;
} else { } else {
release_sticky_key_behavior(sticky_key, k_uptime_get()); release_sticky_key_behavior(sticky_key, sticky_key->release_at);
clear_sticky_key(sticky_key); clear_sticky_key(sticky_key);
} }
} }

Loading…
Cancel
Save