X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b09bda689c8525886d217a9b171b354391cd6d78..00c813596e3eefdd028365acf9542355937e5531:/src/msw/treectrl.cpp?ds=sidebyside diff --git a/src/msw/treectrl.cpp b/src/msw/treectrl.cpp index f281288391..f6dab4428b 100644 --- a/src/msw/treectrl.cpp +++ b/src/msw/treectrl.cpp @@ -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() &&