]> git.saurik.com Git - wxWidgets.git/commitdiff
don't activate items on Alt-Space or Alt-Enter (#9615)
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 28 Jun 2008 01:49:44 +0000 (01:49 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 28 Jun 2008 01:49:44 +0000 (01:49 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54400 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/listctrl.cpp

index 239b9b20b37b4a49fa2941066a0fcba396e3f816..364d62f0340a90b300a79ca02a12c4e3b039a021 100644 (file)
@@ -2239,11 +2239,11 @@ bool wxListCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
                                              wxLIST_STATE_SELECTED);
 
                     // <Enter> or <Space> 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;
                     }