mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 16:24:57 +01:00
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:
parent
642e4950b9
commit
a0eeb80885
6 changed files with 24 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue