]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed keyboard navigation in generic tree control.
authorDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Tue, 17 Jan 2012 06:06:34 +0000 (06:06 +0000)
committerDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Tue, 17 Jan 2012 06:06:34 +0000 (06:06 +0000)
Under MSW any cursor key presses would not be handled by the generic tree control (and it would lose focus). Added the style wxWANTS_CHARS to the creation of wxGenericTreeCtrl to fix keyboard navigation.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70371 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/treectlg.cpp

index e24ce063b37c478149d21cd5642c5de8717f1b4e..180e4513643e6024cc2345ee2c90c67b5b797938 100644 (file)
@@ -997,7 +997,7 @@ bool wxGenericTreeCtrl::Create(wxWindow *parent,
 #endif
 
     if ( !wxControl::Create( parent, id, pos, size,
-                             style|wxHSCROLL|wxVSCROLL,
+                             style|wxHSCROLL|wxVSCROLL|wxWANTS_CHARS,
                              validator,
                              name ) )
         return false;