diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-06-16 15:41:12 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-06-16 15:41:12 +0000 |
commit | ae3c3a76915d5a03be85ba026e71224d251bbf19 (patch) | |
tree | 3abf4b38734d71ecd47d836ee109497734f2ee4c | |
parent | b8f2b0c75c9102d5e4066d5c9c74b449b2925254 (diff) |
fix keyboard event handling for host-provided plugin GUIs
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@7262 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r-- | gtk2_ardour/plugin_ui.cc | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gtk2_ardour/plugin_ui.cc b/gtk2_ardour/plugin_ui.cc index 11e931b91d..b1eee998b9 100644 --- a/gtk2_ardour/plugin_ui.cc +++ b/gtk2_ardour/plugin_ui.cc @@ -324,7 +324,11 @@ PluginUIWindow::on_key_press_event (GdkEventKey* event) { if (_keyboard_focused) { if (_pluginui) { - _pluginui->forward_key_event (event); + if (_pluginui->non_gtk_gui()) { + _pluginui->forward_key_event (event); + } else { + return relay_key_press (event, this); + } } return true; } else { @@ -346,7 +350,10 @@ PluginUIWindow::on_key_release_event (GdkEventKey* event) { if (_keyboard_focused) { if (_pluginui) { - _pluginui->forward_key_event (event); + if (_pluginui->non_gtk_gui()) { + _pluginui->forward_key_event (event); + } + return true; } return false; } else { |