Merge pull request #1963 from Wallacoloo/pianorolldeselect

Add ctrl+shift+a to deselect all notes in piano roll (#1488)
This commit is contained in:
Tres Finocchiaro
2015-04-16 02:49:51 +00:00

View File

@@ -1081,7 +1081,16 @@ void PianoRoll::keyPressEvent(QKeyEvent* ke )
if( ke->modifiers() & Qt::ControlModifier )
{
ke->accept();
selectAll();
if (ke->modifiers() & Qt::ShiftModifier)
{
// Ctrl + Shift + A = deselect all notes
clearSelectedNotes();
}
else
{
// Ctrl + A = select all notes
selectAll();
}
update();
}
break;