From ea46e52e0091feb138b2f1c8a205df066539fcf1 Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Mon, 24 Nov 2014 22:36:03 +0100 Subject: [PATCH] Fixed duplicate hint call if filtered by label. If hints where fired by their label, the action was done twice one tome for the hint fired by filtering and after that because of the timeout. This issue was introduced during the changes for the letter hints. --- src/hints.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hints.c b/src/hints.c index f5fd307..fbeb631 100644 --- a/src/hints.c +++ b/src/hints.c @@ -97,10 +97,10 @@ VbResult hints_keypress(int key) return RESULT_COMPLETE; } else { + fire_timeout(true); /* try to handle the key by the javascript */ arguments[0] = js_string_to_ref(hints.ctx, (char[]){key, '\0'}); if (call_hints_function("update", 1, arguments)) { - fire_timeout(true); return RESULT_COMPLETE; } } -- 2.20.1