pass correct key code in TREE_KEY_DOWN event
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11694 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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() &&
|
||||
|
Reference in New Issue
Block a user