git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14434
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// the other mouse buttons are ignored
if ( event.Button(1) )
{
- if ( event.ButtonDown(1) )
+ if ( event.LeftDown() || event.LeftDClick() )
{
m_winCapture = consumer->GetInputWindow();
m_winCapture->CaptureMouse();
return TRUE;
}
- else // up
+ else if ( event.LeftUp() )
{
if ( m_winCapture )
{
//else: the mouse was released outside the window, this doesn't
// count as a click
}
+ //else: don't do anything special about the double click
}
return wxStdInputHandler::HandleMouse(consumer, event);