Browse Source

Don't consume Button in ModuleWidget when Shift-clicking to select/deselect.

tags/v2.1.0
Andrew Belt 2 years ago
parent
commit
b42c433930
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/app/ModuleWidget.cpp

+ 3
- 0
src/app/ModuleWidget.cpp View File

@@ -380,6 +380,8 @@ void ModuleWidget::onButton(const ButtonEvent& e) {
// Toggle selection on Shift-click // Toggle selection on Shift-click
if ((e.mods & RACK_MOD_MASK) == GLFW_MOD_SHIFT) { if ((e.mods & RACK_MOD_MASK) == GLFW_MOD_SHIFT) {
APP->scene->rack->select(this, false); APP->scene->rack->select(this, false);
e.consume(NULL);
return;
} }


internal->dragOffset = e.pos; internal->dragOffset = e.pos;
@@ -402,6 +404,7 @@ void ModuleWidget::onButton(const ButtonEvent& e) {
// Toggle selection on Shift-click // Toggle selection on Shift-click
if ((e.mods & RACK_MOD_MASK) == GLFW_MOD_SHIFT) { if ((e.mods & RACK_MOD_MASK) == GLFW_MOD_SHIFT) {
APP->scene->rack->select(this, true); APP->scene->rack->select(this, true);
e.consume(NULL);
return; return;
} }




Loading…
Cancel
Save