summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--desktop/global_history.c7
-rw-r--r--desktop/global_history.h9
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