git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59406
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// fabricate the lParam and wParam parameters sufficiently
// similar to the ones from a "real" WM_KEYDOWN so that
// CreateKeyEvent() works correctly
// 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);