Add ctrl-shift-click block selection adding

Originally committed to SVN as r4615.
This commit is contained in:
Thomas Goyne 2010-06-27 04:55:08 +00:00
parent 2f80c6b26a
commit 74d887a4c4

View file

@ -790,7 +790,7 @@ void BaseGrid::OnMouseEvent(wxMouseEvent &event) {
}
// Block select
if ((click && shift && !ctrl && !alt) || (holding && !ctrl && !alt && !shift)) {
if ((click && shift && !alt) || (holding && !ctrl && !alt && !shift)) {
if (lastRow != -1) {
// Set boundaries
int i1 = row;
@ -801,6 +801,7 @@ void BaseGrid::OnMouseEvent(wxMouseEvent &event) {
// Toggle each
Selection newsel;
if (ctrl) newsel = selection;
for (int i=i1;i<=i2;i++) {
newsel.insert(GetDialogue(i));
}