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:
@@ -5267,9 +5267,18 @@ void wxGrid::OnKeyDown( wxKeyEvent& event )
|
|||||||
event.Skip(); // to let the edit control have the return
|
event.Skip(); // to let the edit control have the return
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
if ( GetGridCursorRow() < GetNumberRows()-1 )
|
||||||
{
|
{
|
||||||
MoveCursorDown( event.ShiftDown() );
|
MoveCursorDown( event.ShiftDown() );
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// at the bottom of a column
|
||||||
|
HideCellEditControl();
|
||||||
|
SaveEditControlValue();
|
||||||
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case WXK_ESCAPE:
|
case WXK_ESCAPE:
|
||||||
|
|||||||
Reference in New Issue
Block a user