Don't call StartingKey if the key was F2

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33432 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2005-04-08 17:32:41 +00:00
parent ded0671616
commit 046d682f0f

View File

@@ -6526,7 +6526,7 @@ void wxGrid::OnChar( wxKeyEvent& event )
// visible (even after calling MakeCellVisible the
// control is not created and calling StartingKey will
// crash the app
if ( editor->IsCreated() && m_cellEditCtrlEnabled )
if ( event.GetKeyCode() != WXK_F2 && editor->IsCreated() && m_cellEditCtrlEnabled )
editor->StartingKey(event);
}
else