13
0

reverse logic in ArdourWindow key handling

This commit is contained in:
Paul Davis 2015-04-01 14:01:21 -04:00
parent 57613dc0cc
commit f201b19604

View File

@ -58,14 +58,15 @@ ArdourWindow::~ArdourWindow ()
bool
ArdourWindow::on_key_press_event (GdkEventKey* ev)
{
if (get_modal()) {
return Gtk::Window::on_key_press_event (ev);
bool handled = Gtk::Window::on_key_press_event (ev);
if (!handled) {
if (!get_modal()) {
handled = relay_key_press (ev, this);
}
}
if (!relay_key_press (ev, this)) {
return Gtk::Window::on_key_press_event (ev);
}
return true;
return handled;
}
bool