mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
Use abstract group_override_modifier instead of hardcoded modifiers
This commit is contained in:
parent
8a5fc65df4
commit
9ae9282547
1 changed files with 1 additions and 4 deletions
|
|
@ -583,10 +583,7 @@ GainMeterBase::fader_moved ()
|
||||||
value = gain_adjustment.get_value();
|
value = gain_adjustment.get_value();
|
||||||
}
|
}
|
||||||
|
|
||||||
// XXX hack allow to override group
|
if (Keyboard::the_keyboard().modifier_state() == Keyboard::group_override_modifier ()) {
|
||||||
// (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)) {
|
|
||||||
_control->set_value (value, Controllable::InverseGroup);
|
_control->set_value (value, Controllable::InverseGroup);
|
||||||
} else {
|
} else {
|
||||||
_control->set_value (value, Controllable::UseGroup);
|
_control->set_value (value, Controllable::UseGroup);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue