]> git.saurik.com Git - wxWidgets.git/commitdiff
fix generation of key events with Alt pressed broken by r59369 (see #626)
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 7 Mar 2009 14:07:45 +0000 (14:07 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 7 Mar 2009 14:07:45 +0000 (14:07 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59406 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/treectrl.cpp

index f62d1071790b3429073ef3a542fcc3c62f6377d9..0f04abe833586e30205c23363acf63f2b8810cd3 100644 (file)
@@ -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;