mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-11 22:51:26 +00:00
feat: focus chat input when clicking plus button in extension menu (#6689)
* feat: focus chat input when clicking plus button in extension menu - Added focusInput action after chatButtonClicked in plusButtonClicked handler - This ensures the text area in ChatView gets focused when users click the + button - Improves user experience by allowing immediate typing after creating new chat * fix: replace unreliable setTimeout with sequential message passing - Removed setTimeout with hardcoded 100ms delay - Now sending focusInput action immediately after chatButtonClicked - This ensures proper sequencing without arbitrary timing delays - More reliable approach that doesn't depend on timing assumptions --------- Co-authored-by: Roo Code <roomote@roocode.com>
This commit is contained in:
parent
cb0a58e4a4
commit
15b0f50dd9
1 changed files with 3 additions and 0 deletions
|
|
@ -97,6 +97,9 @@ const getCommandsMap = ({ context, outputChannel, provider }: RegisterCommandOpt
|
|||
await visibleProvider.removeClineFromStack()
|
||||
await visibleProvider.postStateToWebview()
|
||||
await visibleProvider.postMessageToWebview({ type: "action", action: "chatButtonClicked" })
|
||||
// Send focusInput action immediately after chatButtonClicked
|
||||
// This ensures the focus happens after the view has switched
|
||||
await visibleProvider.postMessageToWebview({ type: "action", action: "focusInput" })
|
||||
},
|
||||
mcpButtonClicked: () => {
|
||||
const visibleProvider = getVisibleProviderOrLog(outputChannel)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue