Skip to content

Commit

Permalink
Restore Side-buttons for toggle editing (#956)
Browse files Browse the repository at this point in the history
The side buttons (button 4 and 5) are bound to toggle mod editing
in SurgeSynthesizer but the method which would do this is
wrapped in a conditional which ignores buttons 4 and 5 in
the slider and modulation source button. Fix that.

Closes #906
  • Loading branch information
baconpaul authored Jul 13, 2019
1 parent c69fe9d commit 42078ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/common/gui/CModulationSourceButton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ CMouseEventResult CModulationSourceButton::onMouseDown(CPoint& where, const CBut
}

if (listener &&
buttons & (kAlt | kRButton | kMButton | kShift | kControl | kApple | kDoubleClick))
buttons & (kAlt | kRButton | kMButton | kButton4 | kButton5 | kShift | kControl | kApple | kDoubleClick))
{
if (listener->controlModifierClicked(this, buttons) != 0)
return kMouseDownEventHandledButDontNeedMovedOrUpEvents;
Expand Down
2 changes: 1 addition & 1 deletion src/common/gui/CSurgeSlider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ CMouseEventResult CSurgeSlider::onMouseDown(CPoint& where, const CButtonState& b
}

if (listener &&
buttons & (kAlt | kRButton | kMButton | kShift | kControl | kApple | kDoubleClick))
buttons & (kAlt | kRButton | kMButton | kButton4 | kButton5 | kShift | kControl | kApple | kDoubleClick))
{
if (listener->controlModifierClicked(this, buttons) != 0)
return kMouseEventHandled;
Expand Down

0 comments on commit 42078ac

Please sign in to comment.