summaryrefslogtreecommitdiff
path: root/desktop/treeview.h
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/treeview.h')
-rw-r--r--desktop/treeview.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/desktop/treeview.h b/desktop/treeview.h
index 2579d8553..9692d0aa7 100644
--- a/desktop/treeview.h
+++ b/desktop/treeview.h
@@ -27,6 +27,7 @@
#include <stdint.h>
#include "desktop/core_window.h"
+#include "desktop/textinput.h"
#include "utils/types.h"
struct treeview;
@@ -232,6 +233,15 @@ void treeview_redraw(struct treeview *tree, int x, int y, struct rect *clip,
const struct redraw_context *ctx);
/**
+ * Key press handling for treeviews.
+ *
+ * \param tree The treeview which got the keypress
+ * \param key The ucs4 character codepoint
+ * \return true if the keypress is dealt with, false otherwise.
+ */
+bool treeview_keypress(struct treeview *tree, uint32_t key);
+
+/**
* Handles all kinds of mouse action
*
* \param tree Treeview object