]> git.saurik.com Git - wxWidgets.git/commitdiff
pass correct key code in TREE_KEY_DOWN event
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 24 Sep 2001 22:52:18 +0000 (22:52 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 24 Sep 2001 22:52:18 +0000 (22:52 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11694 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/treectrl.cpp

index f28128839136c9f32d652c8464b1c444842ef698..f6dab4428b734f8c276cdbf6c14a73a2cdd69e14 100644 (file)
@@ -2105,7 +2105,9 @@ bool wxTreeCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
                 // don't have access to the real key press flags here - but as
                 // it is only used to determin wxKeyEvent::m_altDown flag it's
                 // not too bad
-                event.m_evtKey = CreateKeyEvent(wxEVT_KEY_DOWN, info->wVKey, 0);
+                event.m_evtKey = CreateKeyEvent(wxEVT_KEY_DOWN,
+                                                wxCharCodeMSWToWX(info->wVKey),
+                                                0);
 
                 // a separate event for Space/Return
                 if ( !wxIsCtrlDown() && !wxIsShiftDown() &&