From 597d167b9d06d417872db81c8d328318e1b0d85a Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sat, 6 Aug 2016 16:59:43 +0100 Subject: [PATCH] fix hotlist keypress consumption return --- desktop/hotlist.c | 4 ++-- desktop/hotlist.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/desktop/hotlist.c b/desktop/hotlist.c index de26ff651..cce69be8e 100644 --- a/desktop/hotlist.c +++ b/desktop/hotlist.c @@ -1572,9 +1572,9 @@ void hotlist_mouse_action(browser_mouse_state mouse, int x, int y) /* Exported interface, documented in hotlist.h */ -void hotlist_keypress(uint32_t key) +bool hotlist_keypress(uint32_t key) { - treeview_keypress(hl_ctx.tree, key); + return treeview_keypress(hl_ctx.tree, key); } diff --git a/desktop/hotlist.h b/desktop/hotlist.h index c0f4dec66..31aa0307c 100644 --- a/desktop/hotlist.h +++ b/desktop/hotlist.h @@ -189,10 +189,10 @@ void hotlist_mouse_action(enum browser_mouse_state mouse, int x, int y); /** * Key press handling. * - * \param key The ucs4 character codepoint + * \param key The ucs4 character codepoint * \return true if the keypress is dealt with, false otherwise. */ -void hotlist_keypress(uint32_t key); +bool hotlist_keypress(uint32_t key); /** * Determine whether there is a selection