Skip to content

Commit

Permalink
Add ctrl+shift+a to deselect all notes in piano roll (LMMS#1488)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wallacoloo committed Apr 20, 2015
1 parent db0ce50 commit ed0e12e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/gui/editors/PianoRoll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ed0e12e

Please sign in to comment.