X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/64b62afea87ba1c40888fda71d68d7e919b43e60..58ce18f2fdadecffb21e27555115af708325cf18:/include/wx/generic/spinctlg.h?ds=sidebyside diff --git a/include/wx/generic/spinctlg.h b/include/wx/generic/spinctlg.h index 4360c9395c..2cc581c928 100644 --- a/include/wx/generic/spinctlg.h +++ b/include/wx/generic/spinctlg.h @@ -93,8 +93,10 @@ public: void OnTextChar(wxKeyEvent& event); // this window itself is used only as a container for its sub windows so it - // shouldn't accept the focus at all + // shouldn't accept the focus at all and any attempts to explicitly set + // focus to it should give focus to its text constol part virtual bool AcceptsFocus() const { return false; } + virtual void SetFocus(); friend class wxSpinCtrlTextGeneric;