Fix #2588 by making Alt+Right shortcut mirror the Alt+Left shortcut;

Alt+Right sets the PianoRoll to edit the *next* pattern in the song editor; Alt+Left = previous.
This commit is contained in:
Colin Wallace
2016-02-18 20:16:08 -08:00
parent 1c0d329dfb
commit cde1bcc350

View File

@@ -1081,7 +1081,8 @@ void PianoRoll::keyPressEvent(QKeyEvent* ke )
}
else if( ke->modifiers() & Qt::AltModifier)
{
Pattern * p = m_pattern->previousPattern();
// switch to editing a pattern adjacent to this one in the song editor
Pattern * p = direction > 0 ? m_pattern->nextPattern() : m_pattern->previousPattern();
if(p != NULL)
{
setCurrentPattern(p);