summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-06-04 13:26:02 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2013-06-04 13:26:02 +0100
commitadd9e7283711ba059d017d1a656c172366bc751a (patch)
treefaf11e7a1401233468bac3a84a996845d8df9720 /desktop
parentabf5512aff5cf03a764963aaa9dad9e2e570f03e (diff)
downloadnetsurf-add9e7283711ba059d017d1a656c172366bc751a.tar.gz
netsurf-add9e7283711ba059d017d1a656c172366bc751a.tar.bz2
Allow ctrl + select to toggle selection.
Diffstat (limited to 'desktop')
-rw-r--r--desktop/treeview.c4
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;
}