From 33b26197a590ba1a697cdbec1216a3119f0e7b47 Mon Sep 17 00:00:00 2001 From: Dimitri Schoolwerth Date: Tue, 17 Jan 2012 06:06:34 +0000 Subject: [PATCH] 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 --- src/generic/treectlg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.50.0