fix accessibility issues (#9824)

* fix accessibility issues

* fix no active cell

* more fixes
This commit is contained in:
Anthony Dresser
2020-04-06 19:38:40 -07:00
committed by GitHub
parent 9c876f869a
commit 9819e97f7b
8 changed files with 22 additions and 13 deletions

View File

@@ -108,6 +108,7 @@ export class GridPanel extends Disposable {
public focus(): void {
// will need to add logic to save the focused grid and focus that
this.tables[0].focus();
}
public set queryRunner(runner: QueryRunner) {
@@ -352,6 +353,14 @@ export abstract class GridTableBase<T> extends Disposable implements IView {
return ((this.resultSet.rowCount) * this.rowHeight) + HEADER_HEIGHT + ESTIMATED_SCROLL_BAR_HEIGHT;
}
public focus(): void {
if (!this.table.activeCell) {
this.table.setActiveCell(0, 1);
this.selectionModel.setSelectedRanges([new Slick.Range(0, 1)]);
}
this.table.focus();
}
constructor(
state: GridTableState,
protected _resultSet: azdata.ResultSetSummary,