Piano-roll: remove from selection feature (shift + left-click)
This commit is contained in:
committed by
Tobias Doerffel
parent
9215800114
commit
7f63351ca6
@@ -1765,7 +1765,15 @@ void pianoRoll::computeSelectedNotes(bool shift)
|
||||
pos_ticks + len_ticks > sel_pos_start &&
|
||||
pos_ticks < sel_pos_end )
|
||||
{
|
||||
( *it )->setSelected( true );
|
||||
// remove from selection when holding shift
|
||||
if( shift && ( *it )->selected() )
|
||||
{
|
||||
( *it )->setSelected(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
( *it )->setSelected(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user