diff --git a/opencti-platform/opencti-front/src/private/components/events/incidents/IncidentLine.tsx b/opencti-platform/opencti-front/src/private/components/events/incidents/IncidentLine.tsx index ce7565113c5f..8e061aa68688 100644 --- a/opencti-platform/opencti-front/src/private/components/events/incidents/IncidentLine.tsx +++ b/opencti-platform/opencti-front/src/private/components/events/incidents/IncidentLine.tsx @@ -61,6 +61,13 @@ interface IncidentLineComponentProps { event: React.SyntheticEvent ) => void; selectAll: boolean; + onToggleShiftEntity:( + index: number, + entity: IncidentLine_node$data, + event?: React.SyntheticEvent + ) => void; + index: number; + } const IncidentLineFragment = graphql` @@ -114,6 +121,8 @@ export const IncidentLine: FunctionComponent = ({ deSelectedElements, selectAll, onToggleEntity, + onToggleShiftEntity, + index, }) => { const classes = useStyles(); const { fd, t_i18n } = useFormatter(); @@ -129,7 +138,10 @@ export const IncidentLine: FunctionComponent = ({ onToggleEntity(data, event)} + onClick={(event) => (event.shiftKey + ? onToggleShiftEntity(index, data, event) + : onToggleEntity(data, event)) + } >