From 046d682f0f684977b7ba933a128f5c84e06ded0e Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 8 Apr 2005 17:32:41 +0000 Subject: [PATCH] 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 --- src/generic/grid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index 439b9bbb12..889365a4f4 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -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 -- 2.45.2