don't always redirect key press events off to the editor, but allow editing instead

git-svn-id: svn://localhost/ardour2/trunk@1097 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis
2006-11-08 16:39:19 +00:00
parent 20cf901da9
commit 8f471d0f90

View File

@@ -122,13 +122,17 @@ PluginUIWindow::~PluginUIWindow ()
bool
PluginUIWindow::on_key_press_event (GdkEventKey* event)
{
return PublicEditor::instance().on_key_press_event(event);
if (!key_press_focus_accelerator_handler (*this, event)) {
return PublicEditor::instance().on_key_press_event(event);
} else {
return true;
}
}
bool
PluginUIWindow::on_key_release_event (GdkEventKey* event)
{
return PublicEditor::instance().on_key_release_event(event);
return true;
}
void