Skip to content

Commit 1ea4463

Browse files
authored
fix: focus input editor when attachment zone is clicked (microsoft#242105)
1 parent 4060deb commit 1ea4463

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -842,6 +842,7 @@ export class ChatInputPart extends Disposable implements IHistoryNavigationWidge
842842
const hoverDelegate = this._register(createInstantHoverDelegate());
843843

844844
this._register(dom.addStandardDisposableListener(toolbarsContainer, dom.EventType.CLICK, e => this.inputEditor.focus()));
845+
this._register(dom.addStandardDisposableListener(this.attachmentsContainer, dom.EventType.CLICK, e => this.inputEditor.focus()));
845846
this.inputActionsToolbar = this._register(this.instantiationService.createInstance(MenuWorkbenchToolBar, toolbarsContainer, MenuId.ChatInput, {
846847
telemetrySource: this.options.menus.telemetrySource,
847848
menuOptions: { shouldForwardArgs: true },

0 commit comments

Comments
 (0)