Skip to content

Commit 3738fe0

Browse files
ergunshDevtools-frontend LUCI CQ
authored andcommitted
[AiAssistance] Focus text input after screenshot actions
Fixed: 399782817 Change-Id: Ie9b1efc079b12c1e1dd595a3fbf5a422410f5d00 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6311454 Auto-Submit: Ergün Erdoğmuş <[email protected]> Reviewed-by: Alex Rudenko <[email protected]> Commit-Queue: Alex Rudenko <[email protected]> Commit-Queue: Ergün Erdoğmuş <[email protected]>
1 parent 8b2f1e6 commit 3738fe0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

front_end/panels/ai_assistance/AiAssistancePanel.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,12 +1134,18 @@ export class AiAssistancePanel extends UI.Panel.Panel {
11341134
if (bytes) {
11351135
this.#imageInput = bytes;
11361136
this.requestUpdate();
1137+
void this.updateComplete.then(() => {
1138+
this.#viewOutput.chatView?.focusTextInput();
1139+
});
11371140
}
11381141
}
11391142

11401143
#handleRemoveImageInput(): void {
11411144
this.#imageInput = '';
11421145
this.requestUpdate();
1146+
void this.updateComplete.then(() => {
1147+
this.#viewOutput.chatView?.focusTextInput();
1148+
});
11431149
}
11441150

11451151
#handleTextInputChange(value: string): void {

0 commit comments

Comments
 (0)