Merge pull request #2591 from Wallacoloo/fix-2588

Fix #2588 by making Piano Roll's Alt+Right shortcut mirror the Alt+Left shortcut
This commit is contained in:
Tres Finocchiaro
2016-02-19 00:16:24 -05:00

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