Actualmente, esto funciona perfectamente cuando el editor de celdas se abre con Intro (puedo ver 13 en el accesorio keyPress, pero es nulo cuando se abre con la navegación por pestañas)
export const CellEditor = forwardRef((props, ref) => { const { value, api: gridApi, keyPress, column } = props const isOpenedByEnter = 13 === keyPress // the above is null when the cell editor is opened by tab navigation, and no field for moude events const checkboxRef = useRef() const initialValue = isEmptyValue(value) ? undefined : value const [checkboxValue, setCheckboxValue] = useState(initialValue) useImperativeHandle(ref, () => { return { getValue: () => { return checkboxValue }, isPopup() { return false }, afterGuiAttached: () => { isOpenedByEnter && toggleCheckbox() }, } }) const toggleCheckbox = () => { setCheckboxValue((prevCheck) => !prevCheck) } const handleOnChange = (clickEvent) => { setCheckboxValue(clickEvent.target.checked) } return ( <div> <input type="checkbox" ref={checkboxRef} checked={!!checkboxValue} onChange={handleOnChange} /> </div> )})