diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-06-02 14:16:05 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-06-02 14:16:05 +0000 |
commit | 519eaabe8b7995b986b05c050b814cd09cbd4859 (patch) | |
tree | a567fe1595c26379def2ea882ac7e1d99b63e68e | |
parent | 4bc03c4d409432466c103b9a378309c369d10357 (diff) |
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
-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()); } } |