From ed0e12eedb78b5e68ffcde5dca6d2041ce5c22a4 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 5a68056570e..c71924d0e0e 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;