Piano-roll: remove from selection feature (shift + left-click)

This commit is contained in:
NoiseByNorthwest
2012-01-21 22:23:42 +01:00
committed by Tobias Doerffel
parent 9215800114
commit 7f63351ca6

View File

@@ -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);
}
}
}
}