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
3232import { IChatWidgetHistoryService } from 'vs/workbench/contrib/chat/common/chatWidgetHistoryService' ;
3333import { AccessibilityVerbositySettingId } from 'vs/workbench/contrib/accessibility/browser/accessibilityContribution' ;
3434import { IAccessibilityService } from 'vs/platform/accessibility/common/accessibility' ;
35+ import { isWindows } from 'vs/base/common/platform' ;
3536
3637const $ = dom . $ ;
3738
@@ -156,11 +157,12 @@ export class ChatInputPart extends Disposable implements IHistoryNavigationWidge
156157 if ( ! domNode ) {
157158 return ;
158159 }
159- if ( this . accessibilityService . isScreenReaderOptimized ( ) ) {
160+ const handleDom = this . accessibilityService . isScreenReaderOptimized ( ) && ! isWindows ;
161+ if ( handleDom ) {
160162 this . _inputEditorElement . removeChild ( domNode ) ;
161163 }
162164 this . _inputEditor . setValue ( '' ) ;
163- if ( this . accessibilityService . isScreenReaderOptimized ( ) ) {
165+ if ( handleDom ) {
164166 this . _inputEditorElement . appendChild ( domNode ) ;
165167 }
166168 this . _inputEditor . focus ( ) ;
You can’t perform that action at this time.
0 commit comments