diff options
| author | Nathan-SR <144961007+Nathan-SR@users.noreply.github.com> | 2024-03-31 01:04:54 -0400 |
|---|---|---|
| committer | Nathan-SR <144961007+Nathan-SR@users.noreply.github.com> | 2024-03-31 01:04:54 -0400 |
| commit | a54d781810505565fb6d32ad4141ddb178ed81af (patch) | |
| tree | b85e6d3b25fbe6e836bbf78cb72b7dbece8613d3 /src/client/views/collections/collectionSchema/SchemaTableCell.tsx | |
| parent | 3c5bc5b89c3158c6c1dce02f99aa0c08d24dcb39 (diff) | |
ctrl selection
Diffstat (limited to 'src/client/views/collections/collectionSchema/SchemaTableCell.tsx')
| -rw-r--r-- | src/client/views/collections/collectionSchema/SchemaTableCell.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/views/collections/collectionSchema/SchemaTableCell.tsx b/src/client/views/collections/collectionSchema/SchemaTableCell.tsx index 734345255..775a8ce05 100644 --- a/src/client/views/collections/collectionSchema/SchemaTableCell.tsx +++ b/src/client/views/collections/collectionSchema/SchemaTableCell.tsx @@ -35,7 +35,7 @@ export interface SchemaTableCellProps { Document: Doc; col: number; deselectCell: () => void; - selectCell: (doc: Doc, col: number, shift: boolean) => void; + selectCell: (doc: Doc, col: number, shift: boolean, ctrl: boolean) => void; selectedCells: () => Doc[] | undefined; selectedCol: () => number; fieldKey: string; @@ -184,7 +184,8 @@ export class SchemaTableCell extends ObservableReactComponent<SchemaTableCellPro className="schema-table-cell" onPointerDown={action(e => { const shift: boolean = e.shiftKey; - !this.selected && this._props.selectCell(this._props.Document, this._props.col, shift)} + const ctrl: boolean = e.ctrlKey; + !this.selected && this._props.selectCell(this._props.Document, this._props.col, shift, ctrl)} )} style={{ padding: this._props.padding, maxWidth: this._props.maxWidth?.(), width: this._props.columnWidth() || undefined, border: this.selected ? `solid 2px ${Colors.MEDIUM_BLUE}` : undefined }}> {this.content} |
