From 2f37885e4bf19a6da4971d5a32e5169cf6fffc3e Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 4 May 2017 00:35:56 +0200 Subject: [PATCH] MIDI learn on ctrl + middle-click only (not ctrl + other mods + btn2). This fixes various other operations that use ctrl + btn2. e.g. ctrl+alt+btn2 temporary all un/solo/mute. --- libs/gtkmm2ext/binding_proxy.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/gtkmm2ext/binding_proxy.cc b/libs/gtkmm2ext/binding_proxy.cc index 5ba5f7eba4..00732a3361 100644 --- a/libs/gtkmm2ext/binding_proxy.cc +++ b/libs/gtkmm2ext/binding_proxy.cc @@ -24,6 +24,7 @@ #include #include +#include #include "pbd/i18n.h" @@ -69,7 +70,7 @@ BindingProxy::set_bind_button_state (guint button, guint statemask) bool BindingProxy::is_bind_action (GdkEventButton *ev) { - return ( (ev->state & bind_statemask) && ev->button == bind_button ); + return (Keyboard::modifier_state_equals (ev->state, bind_statemask) && ev->button == bind_button ); }