mirror of
https://github.com/LMMS/lmms.git
synced 2026-03-18 14:08:26 -04:00
PianoRoll: fixed messed up editing modes when pressing Ctrl
There were some bugs when pressing Ctrl while in SelectMode. Fix this
by always setting m_ctrlMode and m_editMode in keyPressEvent() when
Ctrl was pressed.
Closes #2854958 and #2836576.
(cherry picked from commit 46c20bdcbd)
This commit is contained in:
@@ -1177,14 +1177,10 @@ void pianoRoll::keyPressEvent( QKeyEvent * _ke )
|
||||
}
|
||||
|
||||
case Qt::Key_Control:
|
||||
if( m_editMode != ModeSelect )
|
||||
{
|
||||
m_ctrlMode = m_editMode;
|
||||
m_editMode = ModeSelect;
|
||||
QApplication::changeOverrideCursor(
|
||||
QCursor( Qt::ArrowCursor ) );
|
||||
update();
|
||||
}
|
||||
m_ctrlMode = m_editMode;
|
||||
m_editMode = ModeSelect;
|
||||
QApplication::changeOverrideCursor( Qt::ArrowCursor );
|
||||
update();
|
||||
break;
|
||||
default:
|
||||
_ke->ignore();
|
||||
|
||||
Reference in New Issue
Block a user