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
This commit is contained in:
Paul Davis 2010-06-02 14:16:05 +00:00
parent 4bc03c4d40
commit 519eaabe8b
1 changed files with 7 additions and 1 deletions

View File

@ -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());
}
}