table cell selection improvement (#20854)

* Support SHIFT key for table cell selection

* fix for mac

* PR comment
This commit is contained in:
Alan Ren
2022-10-14 19:44:14 -07:00
committed by GitHub
parent a773be1bba
commit 5d731fe0ad
6 changed files with 79 additions and 50 deletions

View File

@@ -191,7 +191,7 @@ export class TopOperationsTabView extends Disposable implements IPanelView {
topOperationContainer.appendChild(tableContainer);
this._topOperationsContainers.push(topOperationContainer);
const rowNumberColumn = new RowNumberColumn({ numberOfRows: dataMap.length });
const rowNumberColumn = new RowNumberColumn({ autoCellSelection: false });
columns.unshift(rowNumberColumn.getColumnDefinition());
let copyHandler = new CopyKeybind<any>();
@@ -234,7 +234,7 @@ export class TopOperationsTabView extends Disposable implements IPanelView {
});
}));
const selectionModel = new CellSelectionModel<Slick.SlickData>();
const selectionModel = new CellSelectionModel<Slick.SlickData>({ hasRowSelector: true });
const table = this._register(new Table<Slick.SlickData>(tableContainer, {
columns: columns,