diff --git a/gtk2_ardour/playlist_selector.cc b/gtk2_ardour/playlist_selector.cc index 254a1f500f..8a2eba9c0a 100644 --- a/gtk2_ardour/playlist_selector.cc +++ b/gtk2_ardour/playlist_selector.cc @@ -33,6 +33,7 @@ #include +#include "ardour_ui.h" #include "public_editor.h" #include "playlist_selector.h" #include "route_ui.h" @@ -380,5 +381,6 @@ PlaylistSelector::on_key_press_event (GdkEventKey* ev) /* Don't just forward the key press ... make it act as if it occured in whatever the main window currently is. */ - return ARDOUR_UI_UTILS::emulate_key_event (ev->keyval, ev->state); + Gtk::Window& main_window (ARDOUR_UI::instance()->main_window()); + return ARDOUR_UI_UTILS::relay_key_press (ev, &main_window); }