X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3a71210569f5cefca56cc2244d4a244e2649a8df..68388fdd67d945818a3e3a28757d7c4daa80b58a:/include/wx/generic/spinctlg.h diff --git a/include/wx/generic/spinctlg.h b/include/wx/generic/spinctlg.h index 9d8fe791c5..4360c9395c 100644 --- a/include/wx/generic/spinctlg.h +++ b/include/wx/generic/spinctlg.h @@ -92,6 +92,10 @@ 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 + virtual bool AcceptsFocus() const { return false; } + friend class wxSpinCtrlTextGeneric; protected: