diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-07-01 11:48:43 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-07-01 11:48:43 +0100 |
commit | 743ffa2a46cd8f5a52bab88e9ec6e5ba1b962e6a (patch) | |
tree | 576a3813339a55313c48b3926b2c640bf35efd73 /desktop | |
parent | df1667bd58c95517a16109bca9fb1db0a0a518b5 (diff) | |
download | netsurf-743ffa2a46cd8f5a52bab88e9ec6e5ba1b962e6a.tar.gz netsurf-743ffa2a46cd8f5a52bab88e9ec6e5ba1b962e6a.tar.bz2 |
Pass keypresses on to treeview.
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/global_history.c | 7 | ||||
-rw-r--r-- | desktop/global_history.h | 9 |
2 files changed, 16 insertions, 0 deletions
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 |