prevent Primary-click or Shift-click from deselecting when clicking on a track "background"

git-svn-id: svn://localhost/ardour2/branches/3.0@13604 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2012-12-05 20:29:54 +00:00
parent 5fb6a52a24
commit 082461f108
1 changed files with 7 additions and 1 deletions

View File

@ -3232,7 +3232,13 @@ RubberbandSelectDrag::finished (GdkEvent* event, bool movement_occurred)
}
}
if (do_deselect) {
/* do not deselect if Primary or Tertiary (toggle-select or
* extend-select are pressed.
*/
if (!Keyboard::modifier_state_contains (event->button.state, Keyboard::PrimaryModifier) &&
!Keyboard::modifier_state_contains (event->button.state, Keyboard::TertiaryModifier) &&
do_deselect) {
deselect_things ();
}