in src/overlay/gather-markers.ts [277:301]
highlightOutput(output: CellOutput) {
let selection = { cell: output.cell, outputIndex: output.outputIndex };
let outputMarker = new OutputMarker(
output.element,
output.outputIndex,
output.cell,
(selected, event: MouseEvent) => {
if (selected) {
if (!event.shiftKey) {
this._model.deselectAll();
}
this._model.selectOutput(selection);
} else {
this._model.deselectOutput(selection);
}
if (event.shiftKey) {
// Don't select cells or text when multiple outputs are clicked on
event.preventDefault();
event.stopPropagation();
clearSelectionsInWindow();
}
}
);
this._outputMarkers.push(outputMarker);
}