diff options
-rw-r--r-- | gtk2_ardour/plugin_ui.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gtk2_ardour/plugin_ui.cc b/gtk2_ardour/plugin_ui.cc index 4a006a1d45..0957ef0bad 100644 --- a/gtk2_ardour/plugin_ui.cc +++ b/gtk2_ardour/plugin_ui.cc @@ -329,7 +329,13 @@ PluginUIWindow::on_key_press_event (GdkEventKey* event) } return true; } else { - return relay_key_press (event, this); + /* pass editor window as the window for the event + to be handled in, not this one, because there are + no widgets in this window that we want to have + key focus. + */ + + return relay_key_press (event, &PublicEditor::instance()); } } |