From c32c31f21555bfcd5efbccb0834d4140d328ff28 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 28 Jun 2021 18:28:06 -0600 Subject: [PATCH] add keyfowarding to performance meters window --- gtk2_ardour/dsp_stats_ui.cc | 9 +++++++++ gtk2_ardour/dsp_stats_ui.h | 3 +++ 2 files changed, 12 insertions(+) diff --git a/gtk2_ardour/dsp_stats_ui.cc b/gtk2_ardour/dsp_stats_ui.cc index 4e3632ba08..fa6abb2227 100644 --- a/gtk2_ardour/dsp_stats_ui.cc +++ b/gtk2_ardour/dsp_stats_ui.cc @@ -26,8 +26,10 @@ #include "widgets/tooltips.h" +#include "ardour_ui.h" #include "dsp_stats_ui.h" #include "timers.h" +#include "utils.h" #include "pbd/i18n.h" @@ -282,3 +284,10 @@ DspStatisticsGUI::update () ArdourWidgets::set_tooltip (labels[AudioEngine::NTT + Session::OverallProcess], ""); } } + +bool +DspStatisticsGUI::on_key_press_event (GdkEventKey* ev) +{ + Gtk::Window& main_window (ARDOUR_UI::instance()->main_window()); + return ARDOUR_UI_UTILS::relay_key_press (ev, &main_window); +} diff --git a/gtk2_ardour/dsp_stats_ui.h b/gtk2_ardour/dsp_stats_ui.h index 9fbedb1147..d58df74a53 100644 --- a/gtk2_ardour/dsp_stats_ui.h +++ b/gtk2_ardour/dsp_stats_ui.h @@ -34,6 +34,9 @@ public: void start_updating (); void stop_updating (); +protected: + bool on_key_press_event (GdkEventKey*); + private: void update ();