Make sure checkboxes refresh on Linux.
This commit is contained in:
parent
7df943af9c
commit
5957bc7dba
|
@ -89,6 +89,9 @@ bool GRID_TRICKS::toggleCell( int aRow, int aCol )
|
||||||
model->SetValue( aRow, aCol, wxT( "1" ) );
|
model->SetValue( aRow, aCol, wxT( "1" ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Mac needs this for the keyboard events; Linux appears to always need it.
|
||||||
|
m_grid->ForceRefresh();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -257,11 +260,8 @@ void GRID_TRICKS::onKeyDown( wxKeyEvent& ev )
|
||||||
int col = m_grid->GetCursorColumn();
|
int col = m_grid->GetCursorColumn();
|
||||||
|
|
||||||
if( m_grid->IsVisible( row, col ) && toggleCell( row, col ) )
|
if( m_grid->IsVisible( row, col ) && toggleCell( row, col ) )
|
||||||
{
|
|
||||||
m_grid->ForceRefresh();
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
ev.Skip( true );
|
ev.Skip( true );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue