if you pressed both controls at the same time, the piano roll would get stuck in selection mode (FIXED)

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1931 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Andrew Kelley
2008-12-15 22:07:27 +00:00
parent 55c109e611
commit b3ed6e7fe9
3 changed files with 12 additions and 8 deletions

View File

@@ -1126,11 +1126,14 @@ void pianoRoll::keyPressEvent( QKeyEvent * _ke )
}
case Qt::Key_Control:
m_ctrlMode = m_editMode;
m_editMode = ModeSelect;
QApplication::changeOverrideCursor(
QCursor( Qt::ArrowCursor ) );
update();
if( m_editMode != ModeSelect )
{
m_ctrlMode = m_editMode;
m_editMode = ModeSelect;
QApplication::changeOverrideCursor(
QCursor( Qt::ArrowCursor ) );
update();
}
break;
case Qt::Key_Shift:
/* TODO: implement note detuning some other way.