Skip to content

Commit 9215b37

Browse files
authored
update status bar _onDidChangeScreenReaderOptimized (microsoft#167735)
1 parent fa2d8d9 commit 9215b37

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/vs/workbench/browser/parts/editor/editorStatus.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,10 @@ export class EditorStatus extends Disposable implements IWorkbenchContribution {
336336
}
337337

338338
private registerListeners(): void {
339+
this._register(this.accessibilityService.onDidChangeScreenReaderOptimized(() => {
340+
const screenReaderMode = this.accessibilityService.getAccessibilitySupport() === AccessibilitySupport.Enabled;
341+
this.updateState({ type: 'screenReaderMode', screenReaderMode });
342+
}));
339343
this._register(this.editorService.onDidActiveEditorChange(() => this.updateStatusBar()));
340344
this._register(this.textFileService.untitled.onDidChangeEncoding(model => this.onResourceEncodingChange(model.resource)));
341345
this._register(this.textFileService.files.onDidChangeEncoding(model => this.onResourceEncodingChange((model.resource))));
@@ -807,7 +811,6 @@ export class EditorStatus extends Disposable implements IWorkbenchContribution {
807811
}
808812
}
809813
}
810-
811814
screenReaderMode = (editorWidget.getOption(EditorOption.accessibilitySupport) === AccessibilitySupport.Enabled);
812815
}
813816

0 commit comments

Comments
 (0)