From 519eaabe8b7995b986b05c050b814cd09cbd4859 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 2 Jun 2010 14:16:05 +0000 Subject: prevent key events from being delivered to any widgets in plugin windows, to avoid them being eaten (e.g. as navigation commands in the preset combo) git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@7207 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/plugin_ui.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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()); } } -- cgit v1.2.3