mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-22 22:56:32 +01:00
[Summary] Implemented use case for Shift+Click on a selected tracks header: it shows or hides range selection on the track
This commit is contained in:
parent
ecc4a9b47c
commit
0026b24604
1 changed files with 21 additions and 1 deletions
|
|
@ -1243,7 +1243,27 @@ RouteTimeAxisView::selection_click (GdkEventButton* ev)
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Keyboard::modifier_state_equals (ev->state, (Keyboard::TertiaryModifier))) {
|
||||||
|
|
||||||
|
/* special case: show/hide range selection for selected track */
|
||||||
|
if (_editor.get_selection().selected (this)) {
|
||||||
|
Selection& selection = _editor.get_selection();
|
||||||
|
|
||||||
|
if (!selection.time.empty() ) {
|
||||||
|
TimeAxisView* tv = (TimeAxisView*)this;
|
||||||
|
if (selection.time.tracks_in_range.contains(tv) ) {
|
||||||
|
selection.time.tracks_in_range.remove(tv);
|
||||||
|
hide_selection();
|
||||||
|
} else {
|
||||||
|
selection.time.tracks_in_range.push_back(tv);
|
||||||
|
show_selection (selection.time);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
switch (ArdourKeyboard::selection_type (ev->state)) {
|
switch (ArdourKeyboard::selection_type (ev->state)) {
|
||||||
case Selection::Toggle:
|
case Selection::Toggle:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue