diff options
author | Okke Formsma <okke@formsma.nl> | 2021-02-27 14:53:59 +0100 |
---|---|---|
committer | Pete Johanson <peter@peterjohanson.com> | 2021-02-27 09:20:20 -0500 |
commit | 32008825fe6893c52ed86c05fc64b780d3088a8f (patch) | |
tree | 4ace45a6b7c09ebb74efea0e678dccdec29f6b64 /app/src | |
parent | 0c1940bb799ec8d97bb2f80661778a1396e9277e (diff) |
fix(behaviors): Add missing hold-tap trigger
A hold-tap trigger was missing in the scenario where a hold-tap behavior
was queued for a while and it's timer should've run out.
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/behaviors/behavior_hold_tap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/src/behaviors/behavior_hold_tap.c b/app/src/behaviors/behavior_hold_tap.c index 376633a..c83305d 100644 --- a/app/src/behaviors/behavior_hold_tap.c +++ b/app/src/behaviors/behavior_hold_tap.c @@ -451,6 +451,8 @@ static int on_hold_tap_binding_pressed(struct zmk_behavior_binding *binding, int32_t tapping_term_ms_left = (hold_tap->timestamp + cfg->tapping_term_ms) - k_uptime_get(); if (tapping_term_ms_left > 0) { k_delayed_work_submit(&hold_tap->work, K_MSEC(tapping_term_ms_left)); + } else { + decide_hold_tap(hold_tap, HT_TIMER_EVENT); } return ZMK_BEHAVIOR_OPAQUE; |