Pass keypresses on to treeview.

This commit is contained in:
Michael Drake 2013-07-01 11:48:43 +01:00
parent df1667bd58
commit 743ffa2a46
2 changed files with 16 additions and 0 deletions

View File

@ -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);
}

View File

@ -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