only set focus to the grid window in wxGrid::HideCellEditControl() if it hadn't been switched to another window of our application
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34800 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -7863,7 +7863,13 @@ void wxGrid::HideCellEditControl()
|
|||||||
editor->Show( false );
|
editor->Show( false );
|
||||||
editor->DecRef();
|
editor->DecRef();
|
||||||
attr->DecRef();
|
attr->DecRef();
|
||||||
|
|
||||||
|
// if the focus moved completely outside this application, set it to
|
||||||
|
// ourselves so that it's not "lost" when the user switches back to
|
||||||
|
// this app
|
||||||
|
if ( !FindFocus() )
|
||||||
m_gridWin->SetFocus();
|
m_gridWin->SetFocus();
|
||||||
|
|
||||||
// refresh whole row to the right
|
// refresh whole row to the right
|
||||||
wxRect rect( CellToRect(row, col) );
|
wxRect rect( CellToRect(row, col) );
|
||||||
CalcScrolledPosition(rect.x, rect.y, &rect.x, &rect.y );
|
CalcScrolledPosition(rect.x, rect.y, &rect.x, &rect.y );
|
||||||
|
Reference in New Issue
Block a user