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
This commit is contained in:
Vadim Zeitlin
2008-06-28 01:43:26 +00:00
parent cf92614370
commit 54160f3c64

View File

@@ -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;
}