X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3a71210569f5cefca56cc2244d4a244e2649a8df..58ce18f2fdadecffb21e27555115af708325cf18:/include/wx/generic/spinctlg.h diff --git a/include/wx/generic/spinctlg.h b/include/wx/generic/spinctlg.h index 9d8fe791c5..2cc581c928 100644 --- a/include/wx/generic/spinctlg.h +++ b/include/wx/generic/spinctlg.h @@ -92,6 +92,12 @@ public: void OnTextEnter(wxCommandEvent& event); 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 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; protected: