diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2008-06-18 19:29:19 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2008-06-18 19:29:19 +0000 |
commit | 35b0a000c3f662b2743a6314117b0b34a7c3a540 (patch) | |
tree | e3d4a65a659272352bd1e11fa088e6c94c0ed0dd /gtk2_ardour/plugin_ui.cc | |
parent | 6446d0ce490265fc26beb04fbdfa993d7e3b1c9b (diff) |
make ctrl-w shortcut operate on plugin editors
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3477 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/plugin_ui.cc')
-rw-r--r-- | gtk2_ardour/plugin_ui.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gtk2_ardour/plugin_ui.cc b/gtk2_ardour/plugin_ui.cc index 3c34593c87..7d000d3a45 100644 --- a/gtk2_ardour/plugin_ui.cc +++ b/gtk2_ardour/plugin_ui.cc @@ -51,6 +51,7 @@ #include "utils.h" #include "gui_thread.h" #include "public_editor.h" +#include "keyboard.h" #include "i18n.h" @@ -147,6 +148,20 @@ PluginUIWindow::on_map () set_keep_above (true); } +bool +PluginUIWindow::on_enter_notify_event (GdkEventCrossing *ev) +{ + Keyboard::the_keyboard().enter_window (ev, this); + return false; +} + +bool +PluginUIWindow::on_leave_notify_event (GdkEventCrossing *ev) +{ + Keyboard::the_keyboard().leave_window (ev, this); + return false; +} + void PluginUIWindow::on_show () { |