]> git.saurik.com Git - wxWidgets.git/commitdiff
set focus to the window when the mouse is clicked in it explicitly as we don't let...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 31 May 2009 19:20:20 +0000 (19:20 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 31 May 2009 19:20:20 +0000 (19:20 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60845 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/mousemanager.cpp

index 0e9475f580ab86683082797be5be2fe906abc8a5..20849a0167ae489cf12a8488105f723e079242e7 100644 (file)
@@ -103,6 +103,7 @@ void wxMouseEventsManager::OnLeftDown(wxMouseEvent& event)
     }
 
     m_state = State_Pressed;
+    m_win->SetFocus();
     m_win->CaptureMouse();
     MouseClickBegin(m_item);
 }