summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2016-08-04 23:40:34 +0100
committerVincent Sanders <vince@kyllikki.org>2016-08-04 23:40:34 +0100
commit73b81a59ccaf09f695a643eae06fb510ec4559b4 (patch)
treeb722f7e46ff6ffddf58ded9ea993b6351aabf2df /desktop
parente8df81fdb3ab94977c42a4a0fed082602308f3c6 (diff)
downloadnetsurf-73b81a59ccaf09f695a643eae06fb510ec4559b4.tar.gz
netsurf-73b81a59ccaf09f695a643eae06fb510ec4559b4.tar.bz2
fix global history keypress consumption return
Diffstat (limited to 'desktop')
-rw-r--r--desktop/global_history.c4
-rw-r--r--desktop/global_history.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/desktop/global_history.c b/desktop/global_history.c
index ac4790f3f..d60874c67 100644
--- a/desktop/global_history.c
+++ b/desktop/global_history.c
@@ -947,9 +947,9 @@ void global_history_mouse_action(browser_mouse_state mouse, int x, int y)
/* Exported interface, documented in global_history.h */
-void global_history_keypress(uint32_t key)
+bool global_history_keypress(uint32_t key)
{
- treeview_keypress(gh_ctx.tree, key);
+ return treeview_keypress(gh_ctx.tree, key);
}
diff --git a/desktop/global_history.h b/desktop/global_history.h
index f289a5b06..213a014f3 100644
--- a/desktop/global_history.h
+++ b/desktop/global_history.h
@@ -101,7 +101,7 @@ void global_history_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 global_history_keypress(uint32_t key);
+bool global_history_keypress(uint32_t key);
/**
* Determine whether there is a selection