fix broken accels in mixer window BUT note that processor box now swallows keys that have default GTK functions in a tree/listview, like space. thinking about possible solutions to this. added zero key (0) to reset gain to 0dB
git-svn-id: svn://localhost/ardour2/branches/3.0@5361 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
997dd32d5e
commit
f01af9836e
@ -1531,6 +1531,12 @@ MixerStrip::on_key_press_event (GdkEventKey* ev)
|
||||
return true;
|
||||
break;
|
||||
|
||||
case GDK_0:
|
||||
if (_route) {
|
||||
_route->set_gain (1.0, this);
|
||||
}
|
||||
return true;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -1478,7 +1478,8 @@ Mixer_UI::on_key_press_event (GdkEventKey* ev)
|
||||
bool
|
||||
Mixer_UI::on_key_release_event (GdkEventKey* ev)
|
||||
{
|
||||
return key_press_focus_accelerator_handler (*this, ev);
|
||||
return Gtk::Window::on_key_release_event (ev);
|
||||
// return key_press_focus_accelerator_handler (*this, ev);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -383,7 +383,7 @@ ProcessorBox::processor_key_release_event (GdkEventKey *ev)
|
||||
ret = true;
|
||||
break;
|
||||
|
||||
case GDK_KP_0:
|
||||
case GDK_slash:
|
||||
for (ProcSelection::iterator i = targets.begin(); i != targets.end(); ++i) {
|
||||
if ((*i)->active()) {
|
||||
(*i)->deactivate ();
|
||||
|
Loading…
Reference in New Issue
Block a user