If grid cursor is at the bottom of a column a return key press will

now save the editor value and hide the editor.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7621 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Michael Bedward
2000-06-21 07:47:41 +00:00
parent 00f4f2918f
commit 0a856f043d

View File

@@ -5267,9 +5267,18 @@ void wxGrid::OnKeyDown( wxKeyEvent& event )
event.Skip(); // to let the edit control have the return
}
else
{
if ( GetGridCursorRow() < GetNumberRows()-1 )
{
MoveCursorDown( event.ShiftDown() );
}
else
{
// at the bottom of a column
HideCellEditControl();
SaveEditControlValue();
}
}
break;
case WXK_ESCAPE: