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: