From 19becdf7e02b32465573d69b746736267fb67e88 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 31 May 2012 18:04:54 +0000 Subject: [PATCH] Add primary-modifier click on monitor knobs to go to -inf dB (part of patch by emem in #4726). git-svn-id: svn://localhost/ardour2/branches/3.0@12511 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/gtkmm2ext/motionfeedback.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/gtkmm2ext/motionfeedback.cc b/libs/gtkmm2ext/motionfeedback.cc index b5bdd82aa5..cb1d2cba88 100644 --- a/libs/gtkmm2ext/motionfeedback.cc +++ b/libs/gtkmm2ext/motionfeedback.cc @@ -184,7 +184,10 @@ MotionFeedback::pixwin_button_release_event (GdkEventButton *ev) /* shift click back to the default */ _controllable->set_value (default_value); return true; - } + } else if (Keyboard::modifier_state_equals (ev->state, Keyboard::PrimaryModifier)) { + /* ctrl click back to the minimum value */ + _controllable->set_value (_controllable->lower ()); + } break; case 3: