Make sure checkboxes refresh on Linux.

This commit is contained in:
Jeff Young 2018-03-23 13:33:17 +00:00
parent 7df943af9c
commit 5957bc7dba
1 changed files with 3 additions and 3 deletions

View File

@ -89,6 +89,9 @@ bool GRID_TRICKS::toggleCell( int aRow, int aCol )
model->SetValue( aRow, aCol, wxT( "1" ) );
}
// Mac needs this for the keyboard events; Linux appears to always need it.
m_grid->ForceRefresh();
return true;
}
@ -257,10 +260,7 @@ void GRID_TRICKS::onKeyDown( wxKeyEvent& ev )
int col = m_grid->GetCursorColumn();
if( m_grid->IsVisible( row, col ) && toggleCell( row, col ) )
{
m_grid->ForceRefresh();
return;
}
}
ev.Skip( true );