Revert "Skip mouse button release events in wxGenericTreeCtrl."
This reverts r76094 as it broke label editing in the control. See #16055, closes #16573. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77891 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3709,9 +3709,7 @@ void wxGenericTreeCtrl::OnMouse( wxMouseEvent &event )
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if ( event.LeftUp() || event.RightUp() )
|
else if ( (event.LeftUp() || event.RightUp()) && m_isDragging )
|
||||||
{
|
|
||||||
if ( m_isDragging )
|
|
||||||
{
|
{
|
||||||
ReleaseMouse();
|
ReleaseMouse();
|
||||||
|
|
||||||
@@ -3746,11 +3744,6 @@ void wxGenericTreeCtrl::OnMouse( wxMouseEvent &event )
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
|
||||||
event.Skip();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
// If we got to this point, we are not dragging or moving the mouse.
|
// If we got to this point, we are not dragging or moving the mouse.
|
||||||
// Because the code in carbon/toplevel.cpp will only set focus to the
|
// Because the code in carbon/toplevel.cpp will only set focus to the
|
||||||
|
Reference in New Issue
Block a user