Skip to content

Commit

Permalink
Make Alt+E keybind actually functional (surge-synthesizer#5610)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkruselj authored Dec 9, 2021
1 parent c50d936 commit ac3ce28
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/surge-xt/gui/SurgeGUIEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit ac3ce28

Please sign in to comment.