From: Dimitri Schoolwerth Date: Tue, 17 Jan 2012 06:06:34 +0000 (+0000) Subject: Fixed keyboard navigation in generic tree control. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/33b26197a590ba1a697cdbec1216a3119f0e7b47 Fixed keyboard navigation in generic tree control. 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 --- diff --git a/src/generic/treectlg.cpp b/src/generic/treectlg.cpp index e24ce063b3..180e451364 100644 --- a/src/generic/treectlg.cpp +++ b/src/generic/treectlg.cpp @@ -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;