From 0f5d7cfcd2daade443ea0695275171247e2cfc22 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sun, 31 Jul 2016 00:07:07 +0100 Subject: Fix cookie manager keypress consumption return --- desktop/cookie_manager.c | 4 ++-- desktop/cookie_manager.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'desktop') diff --git a/desktop/cookie_manager.c b/desktop/cookie_manager.c index 6731e8edb..082a14a75 100644 --- a/desktop/cookie_manager.c +++ b/desktop/cookie_manager.c @@ -844,9 +844,9 @@ void cookie_manager_mouse_action(enum browser_mouse_state mouse, int x, int y) /* Exported interface, documented in cookie_manager.h */ -void cookie_manager_keypress(uint32_t key) +bool cookie_manager_keypress(uint32_t key) { - treeview_keypress(cm_ctx.tree, key); + return treeview_keypress(cm_ctx.tree, key); } diff --git a/desktop/cookie_manager.h b/desktop/cookie_manager.h index 65690d693..4ae74a25f 100644 --- a/desktop/cookie_manager.h +++ b/desktop/cookie_manager.h @@ -101,7 +101,7 @@ void cookie_manager_mouse_action(enum browser_mouse_state mouse, int x, int y); * \param key The ucs4 character codepoint * \return true if the keypress is dealt with, false otherwise. */ -void cookie_manager_keypress(uint32_t key); +bool cookie_manager_keypress(uint32_t key); /** * Determine whether there is a selection -- cgit v1.2.3