Skip to content

Commit 8949642

Browse files
committed
add comment
1 parent 5740559 commit 8949642

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/vs/workbench/contrib/chat/browser/chatInputPart.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,9 @@ export class ChatInputPart extends Disposable implements IHistoryNavigationWidge
157157
if (!domNode) {
158158
return;
159159
}
160+
// Remove the input editor from the DOM temporarily to avoid the screen reader
161+
// from reading the cleared text (the request) to the user. On Windows, we don't need to do this
162+
// and it could cause issues.
160163
const handleDom = this.accessibilityService.isScreenReaderOptimized() && !isWindows;
161164
if (handleDom) {
162165
this._inputEditorElement.removeChild(domNode);

0 commit comments

Comments
 (0)