Tables in Extensions need a way to override tab so that tabbing in table cells is not possible and tabbing takes control out of Table - this is the accessibility requirement for tables not having actionable cells. Keeping it as a switch so that we can continue having older behavior where needed.
This commit is contained in:
Udeesha Gautam
2019-08-22 11:42:09 -07:00
committed by GitHub
parent 5b94f8c4a7
commit 1a97313d19
4 changed files with 34 additions and 1 deletions

View File

@@ -1146,6 +1146,13 @@ class TableComponentWrapper extends ComponentWrapper implements azdata.TableComp
this.setProperty('title', v);
}
public get moveFocusOutWithTab(): boolean {
return this.properties['moveFocusOutWithTab'];
}
public set moveFocusOutWithTab(v: boolean) {
this.setProperty('moveFocusOutWithTab', v);
}
public get onRowSelected(): vscode.Event<any> {
let emitter = this._emitterMap.get(ComponentEventType.onSelectedRowChanged);
return emitter && emitter.event;