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.
This commit is contained in:
Robin Gareus 2015-02-21 03:16:04 +01:00
parent 642e4950b9
commit a0eeb80885
6 changed files with 24 additions and 1 deletions

View file

@ -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;