From d146e6fb4a6c779ca90fc17f9dd8d7eaf5dc9162 Mon Sep 17 00:00:00 2001 From: Colin Wallace Date: Sat, 18 Apr 2015 22:22:35 +0000 Subject: [PATCH 1/2] Add keyboard shortcut to create a new FX channel --- src/gui/FxMixerView.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/FxMixerView.cpp b/src/gui/FxMixerView.cpp index 5e99ca32d..89120456d 100644 --- a/src/gui/FxMixerView.cpp +++ b/src/gui/FxMixerView.cpp @@ -510,6 +510,9 @@ void FxMixerView::keyPressEvent(QKeyEvent * e) setCurrentFxLine( m_currentFxLine->channelIndex()+1 ); } break; + case Qt::Key_Insert: + addNewChannel(); + break; } } From 75dd6fa3e76b02412895fbef32ed0a4dd4ff9f79 Mon Sep 17 00:00:00 2001 From: Colin Wallace Date: Mon, 20 Apr 2015 03:06:41 +0000 Subject: [PATCH 2/2] Change new mixer channel shortcut to shift+insert --- src/gui/FxMixerView.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gui/FxMixerView.cpp b/src/gui/FxMixerView.cpp index 89120456d..2a8271048 100644 --- a/src/gui/FxMixerView.cpp +++ b/src/gui/FxMixerView.cpp @@ -511,7 +511,10 @@ void FxMixerView::keyPressEvent(QKeyEvent * e) } break; case Qt::Key_Insert: - addNewChannel(); + if ( e->modifiers() & Qt::ShiftModifier ) + { + addNewChannel(); + } break; } }