X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fkeyboard.h;h=3d9e1c9f41e254091033de37d3b56500185b713e;hb=fc7a2e9ee1616cdcb78d6b60804baff336ad07ee;hp=ec55dc54db7e4ddd111fb3a983c7d1fc031211be;hpb=99904735e066804358f1d0bd138a84f1e9ecda91;p=ardour.git diff --git a/gtk2_ardour/keyboard.h b/gtk2_ardour/keyboard.h index ec55dc54db..3d9e1c9f41 100644 --- a/gtk2_ardour/keyboard.h +++ b/gtk2_ardour/keyboard.h @@ -34,7 +34,7 @@ using std::vector; using std::string; -class Keyboard : public sigc::trackable, Stateful +class Keyboard : public sigc::trackable, PBD::Stateful { public: Keyboard (); @@ -90,6 +90,10 @@ class Keyboard : public sigc::trackable, Stateful static Keyboard& the_keyboard() { return *_the_keyboard; } + static bool some_magic_widget_has_focus (); + static void magic_widget_grab_focus (); + static void magic_widget_drop_focus (); + private: static Keyboard* _the_keyboard; @@ -104,6 +108,8 @@ class Keyboard : public sigc::trackable, Stateful static gint _snooper (GtkWidget*, GdkEventKey*, gpointer); gint snooper (GtkWidget*, GdkEventKey*); + + static bool _some_magic_widget_has_focus; }; #endif /* __ardour_keyboard_h__ */