From ac3ce284c562f4c04dab8d7e9a44ef1cb5e7e3a0 Mon Sep 17 00:00:00 2001 From: EvilDragon Date: Thu, 9 Dec 2021 22:38:25 +0100 Subject: [PATCH] Make Alt+E keybind actually functional (#5610) --- src/surge-xt/gui/SurgeGUIEditor.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/surge-xt/gui/SurgeGUIEditor.cpp b/src/surge-xt/gui/SurgeGUIEditor.cpp index 5c59db78a33..3c6944055a7 100644 --- a/src/surge-xt/gui/SurgeGUIEditor.cpp +++ b/src/surge-xt/gui/SurgeGUIEditor.cpp @@ -5941,6 +5941,16 @@ bool SurgeGUIEditor::keyPressed(const juce::KeyPress &key, juce::Component *orig // toggle an applicable LFO editor (MSEG, formula...) if (key.getModifiers().isAltDown() && keyCode == (int)'E') { + if (lfoDisplay->isMSEG()) + { + toggleOverlay(SurgeGUIEditor::MSEG_EDITOR); + } + + if (lfoDisplay->isFormula()) + { + toggleOverlay(SurgeGUIEditor::FORMULA_EDITOR); + } + return true; }