Is there a way to update current cell's style dynamically within onCellKeyDown callback? I'm trying to access current cell using grid API but no luck so far.
I've applied style but it appears only when the cell loses its focus.
onCellKeyDown={e => {
const cell = e.api.getFocusedCell();
const { colId } = cell.column;
const selector = `[col-id=${colId}]`;
cell.column.colDef.cellStyle = {
color: "red",
fontWeight: "550",
border: "3px solid red !important"
};
}}