editing plugin with generic GUI has a tooltip saying it uses the primary modifier...
authorPaul Davis <paul@linuxaudiosystems.com>
Mon, 22 Aug 2016 01:41:57 +0000 (21:41 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 22 Aug 2016 01:42:16 +0000 (21:42 -0400)
gtk2_ardour/processor_box.cc

index 3590c280d6e487d68232ed9777190a885d1d858d..0f7e37a20381b70ea5e637f67ef75b99c5f41929 100644 (file)
@@ -1548,9 +1548,11 @@ ProcessorEntry::PluginDisplay::on_button_press_event (GdkEventButton *ev)
        // select processor, then call (private)
        //_entry._parent->processor_button_press_event (ev, &_entry);
        if (Keyboard::is_edit_event (ev) || (ev->button == 1 && ev->type == GDK_2BUTTON_PRESS)) {
-               if (Keyboard::modifier_state_equals (ev->state, Keyboard::SecondaryModifier)) {
+               if (Keyboard::modifier_state_equals (ev->state, Keyboard::PrimaryModifier)) {
+                       cerr << "Open generic\n";
                        _entry._parent->generic_edit_processor (_entry.processor ());
                } else {
+                       cerr << "Open custom\n";
                        _entry._parent->edit_processor (_entry.processor ());
                }
                return true;