File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/vs/workbench/contrib/chat/browser Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ import { IChatReplyFollowup } from 'vs/workbench/contrib/chat/common/chatService
32
32
import { IChatWidgetHistoryService } from 'vs/workbench/contrib/chat/common/chatWidgetHistoryService' ;
33
33
import { AccessibilityVerbositySettingId } from 'vs/workbench/contrib/accessibility/browser/accessibilityContribution' ;
34
34
import { IAccessibilityService } from 'vs/platform/accessibility/common/accessibility' ;
35
+ import { isWindows } from 'vs/base/common/platform' ;
35
36
36
37
const $ = dom . $ ;
37
38
@@ -156,11 +157,12 @@ export class ChatInputPart extends Disposable implements IHistoryNavigationWidge
156
157
if ( ! domNode ) {
157
158
return ;
158
159
}
159
- if ( this . accessibilityService . isScreenReaderOptimized ( ) ) {
160
+ const handleDom = this . accessibilityService . isScreenReaderOptimized ( ) && ! isWindows ;
161
+ if ( handleDom ) {
160
162
this . _inputEditorElement . removeChild ( domNode ) ;
161
163
}
162
164
this . _inputEditor . setValue ( '' ) ;
163
- if ( this . accessibilityService . isScreenReaderOptimized ( ) ) {
165
+ if ( handleDom ) {
164
166
this . _inputEditorElement . appendChild ( domNode ) ;
165
167
}
166
168
this . _inputEditor . focus ( ) ;
You can’t perform that action at this time.
0 commit comments