Fix keyboard navigation in wx{List,Choice,Tree,Tool}book controls.
Inherit from wxNavigationEnabled<wxBookCtrlBase> instead of just wxBookCtrlBase to ensure that the keyboard navigation works correctly for these controls. The toolbar in wxToolbook still doesn't accept focus from keyboard but at least the pages can be TAB-bed too and from. And the rest of the controls are now fully accessible using only the keyboard. Closes #14303. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71435 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
#if wxUSE_TREEBOOK
|
||||
|
||||
#include "wx/bookctrl.h"
|
||||
#include "wx/containr.h"
|
||||
#include "wx/treectrl.h" // for wxArrayTreeItemIds
|
||||
|
||||
typedef wxWindow wxTreebookPage;
|
||||
@@ -27,7 +28,7 @@ class WXDLLIMPEXP_FWD_CORE wxTreeEvent;
|
||||
// wxTreebook
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
class WXDLLIMPEXP_CORE wxTreebook : public wxBookCtrlBase
|
||||
class WXDLLIMPEXP_CORE wxTreebook : public wxNavigationEnabled<wxBookCtrlBase>
|
||||
{
|
||||
public:
|
||||
// Constructors and such
|
||||
|
Reference in New Issue
Block a user