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 {
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
You can’t perform that action at this time.
0 commit comments