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:
@@ -6526,7 +6526,7 @@ void wxGrid::OnChar( wxKeyEvent& event )
|
|||||||
// visible (even after calling MakeCellVisible the
|
// visible (even after calling MakeCellVisible the
|
||||||
// control is not created and calling StartingKey will
|
// control is not created and calling StartingKey will
|
||||||
// crash the app
|
// crash the app
|
||||||
if ( editor->IsCreated() && m_cellEditCtrlEnabled )
|
if ( event.GetKeyCode() != WXK_F2 && editor->IsCreated() && m_cellEditCtrlEnabled )
|
||||||
editor->StartingKey(event);
|
editor->StartingKey(event);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user