mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-19 09:35:36 -05:00
fix accessibility issues (#9824)
* fix accessibility issues * fix no active cell * more fixes
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user