From: Vadim Zeitlin Date: Sat, 7 Mar 2009 14:07:45 +0000 (+0000) Subject: fix generation of key events with Alt pressed broken by r59369 (see #626) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/47e105413fda3097f4ff5a3d9a224b8123aa5501 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 --- diff --git a/src/msw/treectrl.cpp b/src/msw/treectrl.cpp index f62d107179..0f04abe833 100644 --- a/src/msw/treectrl.cpp +++ b/src/msw/treectrl.cpp @@ -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;