From a0eeb808850f9b39bd1b5526d70634a75a0a9701 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 21 Feb 2015 03:16:04 +0100 Subject: fix embedded plugin UI keyboard handling When the GUI is opened the first time all is fine, focus is on the embedded widget. However once a user presses one of the preset buttons (Add, Save,...) there is no possibility to return focus to the embedded widget. Ardour always 'sees' it as focus=GtkButton and passes the event to the editor. --- gtk2_ardour/au_pluginui.h | 1 + 1 file changed, 1 insertion(+) (limited to 'gtk2_ardour/au_pluginui.h') diff --git a/gtk2_ardour/au_pluginui.h b/gtk2_ardour/au_pluginui.h index 424d81e901..71c81dfde3 100644 --- a/gtk2_ardour/au_pluginui.h +++ b/gtk2_ardour/au_pluginui.h @@ -76,6 +76,7 @@ class AUPluginUI : public PlugUIBase, public Gtk::VBox void lower_box_realized (); void cocoa_view_resized (); void on_realize (); + void grab_focus(); void forward_key_event (GdkEventKey*); bool on_window_show (const std::string& /*title*/); -- cgit v1.2.3