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:
@@ -1756,7 +1756,7 @@ bool wxListCtrl::MSWShouldPreProcessMessage(WXMSG* msg)
|
|||||||
// We need VK_RETURN to generate wxEVT_COMMAND_LIST_ITEM_ACTIVATED,
|
// We need VK_RETURN to generate wxEVT_COMMAND_LIST_ITEM_ACTIVATED,
|
||||||
// but only if none of the modifiers is down. We'll let normal
|
// but only if none of the modifiers is down. We'll let normal
|
||||||
// accelerators handle those.
|
// accelerators handle those.
|
||||||
if ( !wxIsCtrlDown() && !wxIsCtrlDown() &&
|
if ( !wxIsCtrlDown() && !wxIsShiftDown() &&
|
||||||
!((HIWORD(msg->lParam) & KF_ALTDOWN) == KF_ALTDOWN))
|
!((HIWORD(msg->lParam) & KF_ALTDOWN) == KF_ALTDOWN))
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user