Allow tabbing to the windows inside non-notebook wxBookCtrl
Remove wxBookCtrlBase::AcceptsFocus() returning false as it didn't make any sense: even though wxBookCtrlBase doesn't, indeed, accept focus on itself, it does accept it for its children and returning false prevented the focus from ever getting inside it. This fixes, for example, keyboard navigation in a window containing wxSimplebook and TAB can now be used to move to the controls inside it from the outside. Also remove the now unnecessary AcceptsFocus() override which was just undoing the damage of the base class method and is not needed any more.
This commit is contained in:
@@ -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 );
|
||||
|
Reference in New Issue
Block a user