fix generation of key events with Alt pressed broken by r59369 (see #626)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59406 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
fad4327b0d
commit
47e105413f
@ -3308,8 +3308,8 @@ bool wxTreeCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
|
||||
// fabricate the lParam and wParam parameters sufficiently
|
||||
// similar to the ones from a "real" WM_KEYDOWN so that
|
||||
// CreateKeyEvent() works correctly
|
||||
return MSWHandleTreeKeyDownEvent(info->wVKey,
|
||||
wxIsAltDown() << 16);
|
||||
return MSWHandleTreeKeyDownEvent(
|
||||
info->wVKey, (wxIsAltDown() ? KF_ALTDOWN : 0) << 16);
|
||||
}
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user