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
This commit is contained in:
Paul Davis 2010-06-16 15:41:12 +00:00
parent b8f2b0c75c
commit ae3c3a7691

View file

@ -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 {