From d6d857b12404a9e50bebdd8d143a547b72332f2d Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 18 Jan 2010 00:28:41 +0000 Subject: [PATCH] Generate wxEVT_KEY_DOWN events for navigation keys in wxMSW wxTreeCtrl. We only generated wxEVT_COMMAND_TREE_KEY_DOWN events for the keys which can be used for tree control navigation and which are handled specially in the code but not the wxEVT_KEY_DOWN ones. This was inconsistent with the other keys and incompatible with wx 2.8 and other ports, so generate both events unless the wxEVT_KEY_DOWN one was handled by the user code. Closes #11621. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63169 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/treectrl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/msw/treectrl.cpp b/src/msw/treectrl.cpp index 6b854a8c84..f39b37e568 100644 --- a/src/msw/treectrl.cpp +++ b/src/msw/treectrl.cpp @@ -3167,7 +3167,8 @@ wxTreeCtrl::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam) case VK_END: case VK_PRIOR: case VK_NEXT: - if ( !MSWHandleTreeKeyDownEvent(wParam, lParam) ) + if ( !HandleKeyDown(wParam, lParam) && + !MSWHandleTreeKeyDownEvent(wParam, lParam) ) { // use the key to update the selection if it was left // unprocessed -- 2.47.2