Use abstract group_override_modifier instead of hardcoded modifiers

This commit is contained in:
Robin Gareus 2022-06-21 21:35:43 +02:00
parent 8a5fc65df4
commit 9ae9282547
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 1 additions and 4 deletions

View File

@ -583,10 +583,7 @@ GainMeterBase::fader_moved ()
value = gain_adjustment.get_value();
}
// XXX hack allow to override group
// (this breaks group'ed shift+click reset)
if (Keyboard::the_keyboard().key_is_down (GDK_Shift_R)
|| Keyboard::the_keyboard().key_is_down (GDK_Shift_L)) {
if (Keyboard::the_keyboard().modifier_state() == Keyboard::group_override_modifier ()) {
_control->set_value (value, Controllable::InverseGroup);
} else {
_control->set_value (value, Controllable::UseGroup);