diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-09-16 22:03:27 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-09-16 22:03:27 -0400 |
commit | 61b98d3e9f6585ef51caf79bb1668c4c6bcd141c (patch) | |
tree | 811633563e97e9449d0b1c48bd131b9387188f3c /gtk2_ardour | |
parent | 710ee36eaa5cb55d02322373e9bbccda8095979a (diff) |
check for an existing PublicEditor instance AFTER attempting to handle a key press in a window that has called relay_key_press(), so that normal key handling works there (e.g. audio/MIDI setup)
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/utils.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gtk2_ardour/utils.cc b/gtk2_ardour/utils.cc index 1b87a3d444..304b8508c6 100644 --- a/gtk2_ardour/utils.cc +++ b/gtk2_ardour/utils.cc @@ -365,12 +365,11 @@ relay_key_press (GdkEventKey* ev, Gtk::Window* win) { PublicEditor& ed (PublicEditor::instance()); - if (&ed == 0) { - /* early key press in pre-main-window-dialogs, no editor yet */ - return false; - } - if (!key_press_focus_accelerator_handler (*win, ev)) { + if (&ed == 0) { + /* early key press in pre-main-window-dialogs, no editor yet */ + return false; + } return ed.on_key_press_event(ev); } else { return true; |