From 54160f3c6404da9012ee4b7713b068af00c0b8a7 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 28 Jun 2008 01:43:26 +0000 Subject: [PATCH] test for either Ctrl or Shift in MSWShouldPreProcessMessage() instead of Ctrl twice (#9620) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@54399 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/listctrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/listctrl.cpp b/src/msw/listctrl.cpp index a4c81fe0b8..edb0f4923c 100644 --- a/src/msw/listctrl.cpp +++ b/src/msw/listctrl.cpp @@ -1756,7 +1756,7 @@ bool wxListCtrl::MSWShouldPreProcessMessage(WXMSG* msg) // We need VK_RETURN to generate wxEVT_COMMAND_LIST_ITEM_ACTIVATED, // but only if none of the modifiers is down. We'll let normal // accelerators handle those. - if ( !wxIsCtrlDown() && !wxIsCtrlDown() && + if ( !wxIsCtrlDown() && !wxIsShiftDown() && !((HIWORD(msg->lParam) & KF_ALTDOWN) == KF_ALTDOWN)) return false; }