Set focus to the grid windwo when it is left-clicked

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34199 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2005-05-20 16:17:57 +00:00
parent b3433ee72c
commit 33e9fc549c

View File

@@ -3758,6 +3758,9 @@ void wxGridWindow::ScrollWindow( int dx, int dy, const wxRect *rect )
void wxGridWindow::OnMouseEvent( wxMouseEvent& event )
{
if (event.ButtonDown(wxMOUSE_BTN_LEFT) && FindFocus() != this)
SetFocus();
m_owner->ProcessGridCellMouseEvent( event );
}