From 47e105413fda3097f4ff5a3d9a224b8123aa5501 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 7 Mar 2009 14:07:45 +0000 Subject: [PATCH] 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 --- src/msw/treectrl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.45.2