reverse logic in ArdourWindow key handling
This commit is contained in:
parent
57613dc0cc
commit
f201b19604
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user