summaryrefslogtreecommitdiff
path: root/gtk2_ardour/windows_vst_plugin_ui.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2_ardour/windows_vst_plugin_ui.cc')
-rw-r--r--gtk2_ardour/windows_vst_plugin_ui.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk2_ardour/windows_vst_plugin_ui.cc b/gtk2_ardour/windows_vst_plugin_ui.cc
index c38b545bf5..7d71ef0f78 100644
--- a/gtk2_ardour/windows_vst_plugin_ui.cc
+++ b/gtk2_ardour/windows_vst_plugin_ui.cc
@@ -114,6 +114,10 @@ WindowsVSTPluginUI::package (Gtk::Window& win)
void
WindowsVSTPluginUI::forward_key_event (GdkEventKey* ev)
{
+ if (dispatch_effeditkey (ev)) {
+ return;
+ }
+#ifndef PLATFORM_WINDOWS /* linux + wine ; libs/fst/vstwin.c */
if (ev->type != GDK_KEY_PRESS) {
return;
}
@@ -156,6 +160,7 @@ WindowsVSTPluginUI::forward_key_event (GdkEventKey* ev)
fst->n_pending_keys++;
pthread_mutex_unlock (&fst->lock);
+#endif
}
int