X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8df443926cb4773d1a5031b42f93cc1d921c1be9..f4bb632cde9cc60fa89f173f0d33c5881794cc68:/src/generic/listctrl.cpp diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index f87c9d6b20..0e408a6170 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -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