From 7e1e5061095d4d21e8dfac7d225111bb1c4cebb2 Mon Sep 17 00:00:00 2001 From: Colin Wallace Date: Wed, 15 Apr 2015 23:18:57 +0000 Subject: [PATCH] Add ctrl+shift+a to deselect all notes in piano roll (#1488) --- src/gui/editors/PianoRoll.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/gui/editors/PianoRoll.cpp b/src/gui/editors/PianoRoll.cpp index 5a6805657..c71924d0e 100644 --- a/src/gui/editors/PianoRoll.cpp +++ b/src/gui/editors/PianoRoll.cpp @@ -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;