Space now move active cell right if grid is not editable
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5846 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -608,6 +608,7 @@ void wxGridTextCtrl::OnKeyDown( wxKeyEvent& event )
|
||||
case WXK_RIGHT:
|
||||
case WXK_PRIOR:
|
||||
case WXK_NEXT:
|
||||
case WXK_SPACE:
|
||||
if ( m_isCellControl )
|
||||
{
|
||||
// send the event to the parent grid, skipping the
|
||||
@@ -2436,6 +2437,16 @@ void wxGrid::OnKeyDown( wxKeyEvent& event )
|
||||
MoveCursorRight();
|
||||
}
|
||||
break;
|
||||
|
||||
case WXK_SPACE:
|
||||
if ( !IsEditable() )
|
||||
{
|
||||
MoveCursorRight();
|
||||
}
|
||||
else
|
||||
{
|
||||
event.Skip()
|
||||
}
|
||||
|
||||
case WXK_RETURN:
|
||||
if ( event.ControlDown() )
|
||||
|
Reference in New Issue
Block a user