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
This commit is contained in:
Hussam Eddin Alhomsi
2017-11-15 07:31:39 +03:00
committed by Tres Finocchiaro
parent 6f305a6308
commit c9e5d3aef5

View File

@@ -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;