summaryrefslogtreecommitdiff
path: root/gtk2_ardour/plugin_ui.cc
diff options
context:
space:
mode:
authorSampo Savolainen <v2@iki.fi>2006-08-10 14:41:53 +0000
committerSampo Savolainen <v2@iki.fi>2006-08-10 14:41:53 +0000
commit00bf20c236d38a754e62c74cec3518aeec70d78a (patch)
tree9cf7fd363ba996ae3e9d49a443b3719e7756a822 /gtk2_ardour/plugin_ui.cc
parent77a13df5bd70bf87ee856b81acec7eeed5b1f033 (diff)
Plugin selector keyboard focus should now stay in the plugin list. More
sensible defaults for the NSD and accelerators will work in plugin windows (plus keyboard will not affect the plugin window itself). git-svn-id: svn://localhost/ardour2/trunk@783 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/plugin_ui.cc')
-rw-r--r--gtk2_ardour/plugin_ui.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/gtk2_ardour/plugin_ui.cc b/gtk2_ardour/plugin_ui.cc
index 350240cb1e..f9db649737 100644
--- a/gtk2_ardour/plugin_ui.cc
+++ b/gtk2_ardour/plugin_ui.cc
@@ -27,6 +27,7 @@
#include <pbd/xml++.h>
#include <pbd/failed_constructor.h>
+#include <gtkmm/widget.h>
#include <gtkmm2ext/click_box.h>
#include <gtkmm2ext/fastmeter.h>
#include <gtkmm2ext/barcontroller.h>
@@ -51,6 +52,7 @@
#include "plugin_ui.h"
#include "utils.h"
#include "gui_thread.h"
+#include "public_editor.h"
#include "i18n.h"
@@ -111,11 +113,23 @@ PluginUIWindow::PluginUIWindow (AudioEngine &engine, boost::shared_ptr<PluginIns
if (h > 600) h = 600;
set_default_size (450, h);
}
+
}
PluginUIWindow::~PluginUIWindow ()
{
}
+bool
+PluginUIWindow::on_key_press_event (GdkEventKey* event)
+{
+ return PublicEditor::instance().on_key_press_event(event);
+}
+
+bool
+PluginUIWindow::on_key_release_event (GdkEventKey* event)
+{
+ return PublicEditor::instance().on_key_release_event(event);
+}
void
PluginUIWindow::plugin_going_away (ARDOUR::Redirect* ignored)