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:
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user