From ec27ba21edb68682b64a7038a4d3eea1f62752ad Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 28 Jun 2008 01:49:44 +0000 Subject: [PATCH] don't activate items on Alt-Space or Alt-Enter (#9615) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54400 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/listctrl.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/msw/listctrl.cpp b/src/msw/listctrl.cpp index 239b9b20b3..364d62f034 100644 --- a/src/msw/listctrl.cpp +++ b/src/msw/listctrl.cpp @@ -2239,11 +2239,11 @@ bool wxListCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result) wxLIST_STATE_SELECTED); // or activate the selected item if any (but - // not with Shift and/or Ctrl as then they have a predefined - // meaning for the list view) + // not with any modifiers as they have a predefined meaning + // then) if ( lItem != -1 && (wVKey == VK_RETURN || wVKey == VK_SPACE) && - !(wxIsShiftDown() || wxIsCtrlDown()) ) + !wxIsAnyModifierDown() ) { eventType = wxEVT_COMMAND_LIST_ITEM_ACTIVATED; } -- 2.45.2