From cde1bcc350419163be16e0dc9957219aed1a0ca3 Mon Sep 17 00:00:00 2001 From: Colin Wallace Date: Thu, 18 Feb 2016 20:16:08 -0800 Subject: [PATCH] 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. --- src/gui/editors/PianoRoll.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/editors/PianoRoll.cpp b/src/gui/editors/PianoRoll.cpp index 85ef9339b..a8c70c6a9 100644 --- a/src/gui/editors/PianoRoll.cpp +++ b/src/gui/editors/PianoRoll.cpp @@ -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);