Allow ctrl + select to toggle selection.

This commit is contained in:
Michael Drake 2013-06-04 13:26:02 +01:00
parent abf5512aff
commit add9e72837
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}