diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-06-04 13:26:02 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-06-04 13:26:02 +0100 |
commit | add9e7283711ba059d017d1a656c172366bc751a (patch) | |
tree | faf11e7a1401233468bac3a84a996845d8df9720 /desktop | |
parent | abf5512aff5cf03a764963aaa9dad9e2e570f03e (diff) | |
download | netsurf-add9e7283711ba059d017d1a656c172366bc751a.tar.gz netsurf-add9e7283711ba059d017d1a656c172366bc751a.tar.bz2 |
Allow ctrl + select to toggle selection.
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/treeview.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/desktop/treeview.c b/desktop/treeview.c index 8fee9fc2d..3b71da0c1 100644 --- a/desktop/treeview.c +++ b/desktop/treeview.c @@ -1121,7 +1121,9 @@ static bool treeview_node_mouse_action_cb(struct treeview_node *node, void *ctx) /* Select node */ action |= TV_NODE_ACTION_SELECTION; - } else if (ma->mouse & BROWSER_MOUSE_PRESS_2) { + } else if (ma->mouse & BROWSER_MOUSE_PRESS_2 || + (ma->mouse & BROWSER_MOUSE_PRESS_1 && + ma->mouse & BROWSER_MOUSE_MOD_2)) { /* Toggle selection of node */ action |= TV_NODE_ACTION_SELECTION; } |