Add ctrl+shift+a to deselect all notes in piano roll (#1488)

This commit is contained in:
Colin Wallace
2015-04-15 23:18:57 +00:00
parent bf8eeaa9f8
commit 7e1e506109

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;