From 3845af6ce92ef15637ffb09410f442e7b4a104c3 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 27 Aug 2009 03:09:30 +0000 Subject: lots of MIDI editing stuff. to be explained on the website when its done git-svn-id: svn://localhost/ardour2/branches/3.0@5596 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/utils.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'gtk2_ardour/utils.cc') diff --git a/gtk2_ardour/utils.cc b/gtk2_ardour/utils.cc index 7a1c9c6968..5e5534222e 100644 --- a/gtk2_ardour/utils.cc +++ b/gtk2_ardour/utils.cc @@ -41,6 +41,7 @@ #include "ardour/filesystem_paths.h" #include "ardour_ui.h" +#include "public_editor.h" #include "keyboard.h" #include "utils.h" #include "i18n.h" @@ -508,6 +509,16 @@ extern "C" { } #endif +bool +relay_key_press (GdkEventKey* ev, Gtk::Window* win) +{ + if (!key_press_focus_accelerator_handler (*win, ev)) { + return PublicEditor::instance().on_key_press_event(ev); + } else { + return true; + } +} + bool key_press_focus_accelerator_handler (Gtk::Window& window, GdkEventKey* ev) { -- cgit v1.2.3