From 6de9def05db78a073556a6c6e59f2381834774ad Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 31 May 2009 19:20:20 +0000 Subject: [PATCH] set focus to the window when the mouse is clicked in it explicitly as we don't let the default mouse click handling take place git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60845 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/mousemanager.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/mousemanager.cpp b/src/common/mousemanager.cpp index 0e9475f580..20849a0167 100644 --- a/src/common/mousemanager.cpp +++ b/src/common/mousemanager.cpp @@ -103,6 +103,7 @@ void wxMouseEventsManager::OnLeftDown(wxMouseEvent& event) } m_state = State_Pressed; + m_win->SetFocus(); m_win->CaptureMouse(); MouseClickBegin(m_item); } -- 2.45.2