| 134 | } |
| 135 | |
| 136 | void SelectionState::HandleListSelection(TrackList &tracks, ViewInfo &viewInfo, |
| 137 | Track &track, bool shift, bool ctrl, bool syncLocked) |
| 138 | { |
| 139 | // AS: If the shift button is being held down, invert |
| 140 | // the selection on this track. |
| 141 | if (ctrl) |
| 142 | SelectTrack(track, !track.GetSelected(), true); |
| 143 | else { |
| 144 | if (shift && mLastPickedTrack.lock()) |
| 145 | ChangeSelectionOnShiftClick(tracks, track); |
| 146 | else { |
| 147 | SelectNone(tracks); |
| 148 | SelectTrack(track, true, true); |
| 149 | SelectTrackLength(viewInfo, track, syncLocked); |
| 150 | } |
| 151 | } |
| 152 | } |
| 153 | |
| 154 | SelectionStateChanger::SelectionStateChanger |
| 155 | ( SelectionState &state, TrackList &tracks ) |
no test coverage detected