Skip mouse button release events in wxGenericListCtrl.

This is similar to r76093 for wxGenericTreeCtrl and fixes a similar problem:
clicking in a wxListCtrl inside wxNotebook confused GtkNotebook mouse tracking
logic because it didn't get some events.

Closes #16365.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@76822 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2014-07-04 12:22:27 +00:00
parent 15ed55e357
commit 0445ddf58d
2 changed files with 9 additions and 0 deletions

View File

@@ -2426,6 +2426,9 @@ void wxListMainWindow::OnMouse( wxMouseEvent &event )
{
// reset the selection and bail out
HighlightAll(false);
if ( event.LeftUp() )
event.Skip();
}
return;
@@ -2501,6 +2504,8 @@ void wxListMainWindow::OnMouse( wxMouseEvent &event )
}
m_lineSelectSingleOnUp = (size_t)-1;
event.Skip();
}
else
{