13
0

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:
Paul Davis 2009-07-14 01:24:16 +00:00
parent 997dd32d5e
commit f01af9836e
3 changed files with 9 additions and 2 deletions

View File

@ -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;
}

View File

@ -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

View File

@ -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 ();