From 66264eb68fff5878b1f9923e782ef83eb48772c7 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sun, 6 Jun 2021 08:11:13 -0600 Subject: [PATCH] use existing API for key forwarding --- gtk2_ardour/playlist_selector.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); }