提交 51c5f904 编写于 作者: I isidor

fixes #93481

上级 b6765e34
......@@ -457,6 +457,9 @@ export class TextAreaHandler extends ViewPart {
this.textArea.setAttribute('aria-autocomplete', 'both');
this.textArea.removeAttribute('aria-activedescendant');
}
if (options.role) {
this.textArea.setAttribute('role', options.role);
}
}
// --- end view API
......
......@@ -333,6 +333,7 @@ export interface IOverviewRuler {
*/
export interface IEditorAriaOptions {
activeDescendant: string | undefined;
role?: string;
}
/**
......
......@@ -88,6 +88,7 @@ export class OutputViewPane extends ViewPane {
renderBody(container: HTMLElement): void {
this.editor.create(container);
const codeEditor = <ICodeEditor>this.editor.getControl();
codeEditor.setAriaOptions({ role: 'document', activeDescendant: undefined });
this._register(codeEditor.onDidChangeModelContent(() => {
const activeChannel = this.outputService.getActiveChannel();
if (activeChannel && !this.scrollLock) {
......@@ -317,4 +318,3 @@ class SwitchOutputActionViewItem extends SelectActionViewItem {
this.setOptions(options.map((label, index) => <ISelectOptionItem>{ text: label, isDisabled: (index === separatorIndex ? true : false) }), Math.max(0, selected));
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册