diff --git a/include/wx/bookctrl.h b/include/wx/bookctrl.h index 0149ba4d94..aad4834a55 100644 --- a/include/wx/bookctrl.h +++ b/include/wx/bookctrl.h @@ -228,9 +228,6 @@ public: // we do have multiple pages virtual bool HasMultiplePages() const wxOVERRIDE { return true; } - // we don't want focus for ourselves - virtual bool AcceptsFocus() const wxOVERRIDE { return false; } - // returns true if the platform should explicitly apply a theme border virtual bool CanApplyThemeBorder() const wxOVERRIDE { return false; } diff --git a/include/wx/notebook.h b/include/wx/notebook.h index 61c2d2e6b8..8416c695a5 100644 --- a/include/wx/notebook.h +++ b/include/wx/notebook.h @@ -139,10 +139,6 @@ public: // new is wxNOT_FOUND) void SendPageChangedEvent(int nPageOld, int nPageNew = wxNOT_FOUND); - // wxBookCtrlBase overrides this method to return false but we do need - // focus because we have tabs - virtual bool AcceptsFocus() const wxOVERRIDE { return wxControl::AcceptsFocus(); } - #if wxUSE_EXTENDED_RTTI // XTI accessors virtual void AddPageInfo( wxNotebookPageInfo* info );