From c9e5d3aef5665ada4b4f84afaecf0e8cf366ecbb Mon Sep 17 00:00:00 2001 From: Hussam Eddin Alhomsi Date: Wed, 15 Nov 2017 07:31:39 +0300 Subject: [PATCH] Restrict playing notes on the keyboard of the Piano Roll editor to left-clicks. (#3771) Restrict playing notes on the keyboard of the Piano Roll editor to left-clicks --- src/gui/editors/PianoRoll.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/editors/PianoRoll.cpp b/src/gui/editors/PianoRoll.cpp index 1fa2f2641..cd2a1dd67 100644 --- a/src/gui/editors/PianoRoll.cpp +++ b/src/gui/editors/PianoRoll.cpp @@ -1671,10 +1671,10 @@ void PianoRoll::mousePressEvent(QMouseEvent * me ) // clicked on keyboard on the left if( me->buttons() == Qt::RightButton ) { - // right click, tone marker contextual menu + // right click - tone marker contextual menu m_semiToneMarkerMenu->popup( mapToGlobal( QPoint( me->x(), me->y() ) ) ); } - else + else if( me->buttons() == Qt::LeftButton ) { // left click - play the note int v = ( (float) x ) / ( (float) WHITE_KEY_WIDTH ) * MidiDefaultVelocity;