mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-26 18:27:38 +01:00
Fix screen reader for comment editor (#191828)
* Try forwarding the accessibility support setting to the comment editor * Add isAccessible to comment view Fixes #146994
This commit is contained in:
@@ -129,7 +129,7 @@ export class ReviewZoneWidget extends ZoneWidget implements ICommentThreadWidget
|
||||
@IContextKeyService contextKeyService: IContextKeyService,
|
||||
@IConfigurationService private readonly configurationService: IConfigurationService
|
||||
) {
|
||||
super(editor, { keepEditorSelection: true });
|
||||
super(editor, { keepEditorSelection: true, isAccessible: true });
|
||||
this._contextKeyService = contextKeyService.createScoped(this.domNode);
|
||||
|
||||
this._scopedInstantiationService = instantiationService.createChild(new ServiceCollection(
|
||||
|
||||
@@ -104,7 +104,8 @@ export class SimpleCommentEditor extends CodeEditorWidget {
|
||||
enabled: false
|
||||
},
|
||||
autoClosingBrackets: configurationService.getValue('editor.autoClosingBrackets'),
|
||||
quickSuggestions: false
|
||||
quickSuggestions: false,
|
||||
accessibilitySupport: configurationService.getValue<'auto' | 'off' | 'on'>('editor.accessibilitySupport'),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user