summaryrefslogtreecommitdiff
path: root/gtk2_ardour/plugin_ui.h
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-02-21 03:16:04 +0100
committerRobin Gareus <robin@gareus.org>2015-02-21 03:16:04 +0100
commita0eeb808850f9b39bd1b5526d70634a75a0a9701 (patch)
treeb37b1991302cc69bda8487e385a4aa3418009391 /gtk2_ardour/plugin_ui.h
parent642e4950b915a2317bd51e3ec7c270909229c353 (diff)
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.
Diffstat (limited to 'gtk2_ardour/plugin_ui.h')
-rw-r--r--gtk2_ardour/plugin_ui.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk2_ardour/plugin_ui.h b/gtk2_ardour/plugin_ui.h
index 14bfbe3eca..58dc6ce2a3 100644
--- a/gtk2_ardour/plugin_ui.h
+++ b/gtk2_ardour/plugin_ui.h
@@ -103,7 +103,8 @@ class PlugUIBase : public virtual sigc::trackable, public PBD::ScopedConnectionL
virtual void on_window_hide() {}
virtual void forward_key_event (GdkEventKey*) {}
- virtual bool non_gtk_gui() const { return false; }
+ virtual void grab_focus () {}
+ virtual bool non_gtk_gui() const { return false; }
sigc::signal<void,bool> KeyboardFocused;