diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-07-01 11:49:14 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-07-01 11:49:14 +0100 |
commit | c862cd60ad7d7c6f58795dabd1e4e41baa1d62b8 (patch) | |
tree | 308c3191b0c19a6db87e06d4529b937c3ad68d78 /desktop | |
parent | 743ffa2a46cd8f5a52bab88e9ec6e5ba1b962e6a (diff) | |
download | netsurf-c862cd60ad7d7c6f58795dabd1e4e41baa1d62b8.tar.gz netsurf-c862cd60ad7d7c6f58795dabd1e4e41baa1d62b8.tar.bz2 |
Make treeview test parasite trap keyboard action too.
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/tree.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/desktop/tree.c b/desktop/tree.c index 780bd6b55..2a91c8e58 100644 --- a/desktop/tree.c +++ b/desktop/tree.c @@ -257,6 +257,11 @@ static void treeview_test_mouse_action(struct tree *tree, global_history_mouse_action(mouse, x, y); } +static void treeview_test_keypress(struct tree *tree, uint32_t key) +{ + global_history_keypress(key); +} + @@ -2976,6 +2981,11 @@ void tree_drag_end(struct tree *tree, browser_mouse_state mouse, int x0, int y0, */ bool tree_keypress(struct tree *tree, uint32_t key) { + if (tree->flags == TREE_MOVABLE) { + treeview_test_keypress(tree, key); + return true; + } + if (tree->editing != NULL) switch (key) { case KEY_ESCAPE: |