Adding option to sort columns using F3 key in SlickGrid. (#20897)

This commit is contained in:
Aasim Khan
2022-10-25 08:22:31 -07:00
committed by GitHub
parent ab958a2724
commit 4d5e9adbc1
8 changed files with 26 additions and 12 deletions

View File

@@ -335,6 +335,15 @@ export class TopOperationsTabView extends Disposable implements IPanelView {
}
}));
this._register(table.onKeyDown(e => {
if (e.event.key === 'F3') {
table.grid.sortColumnByActiveCell();
e.event.preventDefault();
e.event.stopPropagation();
}
}));
this._register(table.onContextMenu(e => {
let csvString = '';
let csvStringWithHeader = '';