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:
@@ -5268,7 +5268,16 @@ void wxGrid::OnKeyDown( wxKeyEvent& event )
|
||||
}
|
||||
else
|
||||
{
|
||||
MoveCursorDown( event.ShiftDown() );
|
||||
if ( GetGridCursorRow() < GetNumberRows()-1 )
|
||||
{
|
||||
MoveCursorDown( event.ShiftDown() );
|
||||
}
|
||||
else
|
||||
{
|
||||
// at the bottom of a column
|
||||
HideCellEditControl();
|
||||
SaveEditControlValue();
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user