Add ctrl-shift-click block selection adding
Originally committed to SVN as r4615.
This commit is contained in:
parent
2f80c6b26a
commit
74d887a4c4
1 changed files with 2 additions and 1 deletions
|
@ -790,7 +790,7 @@ void BaseGrid::OnMouseEvent(wxMouseEvent &event) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Block select
|
// Block select
|
||||||
if ((click && shift && !ctrl && !alt) || (holding && !ctrl && !alt && !shift)) {
|
if ((click && shift && !alt) || (holding && !ctrl && !alt && !shift)) {
|
||||||
if (lastRow != -1) {
|
if (lastRow != -1) {
|
||||||
// Set boundaries
|
// Set boundaries
|
||||||
int i1 = row;
|
int i1 = row;
|
||||||
|
@ -801,6 +801,7 @@ void BaseGrid::OnMouseEvent(wxMouseEvent &event) {
|
||||||
|
|
||||||
// Toggle each
|
// Toggle each
|
||||||
Selection newsel;
|
Selection newsel;
|
||||||
|
if (ctrl) newsel = selection;
|
||||||
for (int i=i1;i<=i2;i++) {
|
for (int i=i1;i<=i2;i++) {
|
||||||
newsel.insert(GetDialogue(i));
|
newsel.insert(GetDialogue(i));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue