From 743ffa2a46cd8f5a52bab88e9ec6e5ba1b962e6a Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 1 Jul 2013 11:48:43 +0100 Subject: Pass keypresses on to treeview. --- desktop/global_history.c | 7 +++++++ desktop/global_history.h | 9 +++++++++ 2 files changed, 16 insertions(+) (limited to 'desktop') diff --git a/desktop/global_history.c b/desktop/global_history.c index e49b300ca..0a1e549d6 100644 --- a/desktop/global_history.c +++ b/desktop/global_history.c @@ -740,3 +740,10 @@ void global_history_mouse_action(browser_mouse_state mouse, int x, int y) treeview_mouse_action(gh_ctx.tree, mouse, x, y); } + +/* Exported interface, documented in global_history.h */ +void global_history_keypress(uint32_t key) +{ + treeview_keypress(gh_ctx.tree, key); +} + diff --git a/desktop/global_history.h b/desktop/global_history.h index 4564920ce..591b1fe6f 100644 --- a/desktop/global_history.h +++ b/desktop/global_history.h @@ -70,4 +70,13 @@ void global_history_redraw(int x, int y, struct rect *clip, */ void global_history_mouse_action(browser_mouse_state mouse, int x, int y); + +/** + * Key press handling. + * + * \param key The ucs4 character codepoint + * \return true if the keypress is dealt with, false otherwise. + */ +void global_history_keypress(uint32_t key); + #endif -- cgit v1.2.3