File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/vs/workbench/browser/parts/editor Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -336,6 +336,10 @@ export class EditorStatus extends Disposable implements IWorkbenchContribution {
336
336
}
337
337
338
338
private registerListeners ( ) : void {
339
+ this . _register ( this . accessibilityService . onDidChangeScreenReaderOptimized ( ( ) => {
340
+ const screenReaderMode = this . accessibilityService . getAccessibilitySupport ( ) === AccessibilitySupport . Enabled ;
341
+ this . updateState ( { type : 'screenReaderMode' , screenReaderMode } ) ;
342
+ } ) ) ;
339
343
this . _register ( this . editorService . onDidActiveEditorChange ( ( ) => this . updateStatusBar ( ) ) ) ;
340
344
this . _register ( this . textFileService . untitled . onDidChangeEncoding ( model => this . onResourceEncodingChange ( model . resource ) ) ) ;
341
345
this . _register ( this . textFileService . files . onDidChangeEncoding ( model => this . onResourceEncodingChange ( ( model . resource ) ) ) ) ;
@@ -807,7 +811,6 @@ export class EditorStatus extends Disposable implements IWorkbenchContribution {
807
811
}
808
812
}
809
813
}
810
-
811
814
screenReaderMode = ( editorWidget . getOption ( EditorOption . accessibilitySupport ) === AccessibilitySupport . Enabled ) ;
812
815
}
813
816
You can’t perform that action at this time.
0 commit comments