summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2006-11-08 16:39:19 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2006-11-08 16:39:19 +0000
commit8f471d0f90749496a9a5d4353304202556dcfd5f (patch)
tree06dc0ed485255d2bef80e6d76d27688dee16e890
parent20cf901da98d7306e4f65c806a60d70fa1465b0b (diff)
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
-rw-r--r--gtk2_ardour/plugin_ui.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/gtk2_ardour/plugin_ui.cc b/gtk2_ardour/plugin_ui.cc
index 4ed2639b78..5c5719bb39 100644
--- a/gtk2_ardour/plugin_ui.cc
+++ b/gtk2_ardour/plugin_ui.cc
@@ -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