Skip to content

Commit 53d68c0

Browse files
Hussam Eddin Alhomsitresf
authored andcommitted
Restrict playing notes on the keyboard of the Piano Roll editor to left-clicks. (LMMS#3771)
Restrict playing notes on the keyboard of the Piano Roll editor to left-clicks
1 parent 21d1d08 commit 53d68c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gui/editors/PianoRoll.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1671,10 +1671,10 @@ void PianoRoll::mousePressEvent(QMouseEvent * me )
16711671
// clicked on keyboard on the left
16721672
if( me->buttons() == Qt::RightButton )
16731673
{
1674-
// right click, tone marker contextual menu
1674+
// right click - tone marker contextual menu
16751675
m_semiToneMarkerMenu->popup( mapToGlobal( QPoint( me->x(), me->y() ) ) );
16761676
}
1677-
else
1677+
else if( me->buttons() == Qt::LeftButton )
16781678
{
16791679
// left click - play the note
16801680
int v = ( (float) x ) / ( (float) WHITE_KEY_WIDTH ) * MidiDefaultVelocity;

0 commit comments

Comments
 (0)