]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/listctrl.cpp
Make it possible to actually build cvs with a version of bakefile
[wxWidgets.git] / src / generic / listctrl.cpp
index f87c9d6b20b9130a08a03ad8737bc3d84e6e246d..0e408a6170dfd72e58bd4c8817cc89e44e6950b4 100644 (file)
@@ -3019,6 +3019,8 @@ void wxListMainWindow::OnMouse( wxMouseEvent &event )
         }
         SendNotify( current, wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK,
                     event.GetPosition() );
+        // Allow generation of context menu event
+        event.Skip();
     }
     else if (event.MiddleDown())
     {
@@ -3034,14 +3036,14 @@ void wxListMainWindow::OnMouse( wxMouseEvent &event )
         if ( !(cmdModifierDown || event.ShiftDown()) )
         {
             if( IsSingleSel() || !IsHighlighted(current) )
-        {
-            HighlightAll( false );
+            {
+                HighlightAll( false );
 
-            ChangeCurrent(current);
+                ChangeCurrent(current);
 
-            ReverseHighlight(m_current);
-        }
-            else // multi sel & current is highlighted & no mod keys
+                ReverseHighlight(m_current);
+            }
+            else // multi sel & current is highlighted & no mod keys
             {
                 m_lineSelectSingleOnUp = current;      
                 ChangeCurrent(current); // change focus