-
Notifications
You must be signed in to change notification settings - Fork 2.3k
feat: add command to focus Roo Code input field #2369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution!
* feat: add command to focus Roo Code input field * fixup! feat: add command to focus Roo Code input field * fixup! feat: add command to focus Roo Code input field
* feat: add command to focus Roo Code input field * fixup! feat: add command to focus Roo Code input field * fixup! feat: add command to focus Roo Code input field
Context
This PR adds a new command
roo-cline.focusInput
to the Roo Code VS Code extension. This allows users to directly focus the main input text area in the Roo Code panel using the command palette or a custom keyboard shortcut, improving accessibility and workflow speed.Implementation
roo-cline.focusInput
command definition topackage.json
with the title "Focus Input Field" and category "Roo Code". No default keybinding was added, allowing users to define their own.src/activate/registerCommands.ts
. This handler sends afocusInput
action message to the webview viaprovider.postMessageToWebview
.handleMessage
function inwebview-ui/src/components/chat/ChatView.tsx
to listen for thefocusInput
action and calltextAreaRef.current?.focus()
when received.webview-ui/src/components/chat/ChatTextArea.tsx
to ensure the text area component correctly fills the width of its parent container, resolving a layout issue.Screenshots
(No visual changes)
How to Test
feat/focus-input-command
branch.npm run compile
Cmd+Shift+P
/Ctrl+Shift+P
).Cmd+K Cmd+S
/Ctrl+K Ctrl+S
).Cmd+Shift+I
) to "Roo Code: Focus Input Field".Get in Touch
aleks.kirillov_41799
Important
Adds
roo-cline.focusInput
command to focus the input field in Roo Code extension, enhancing accessibility.roo-cline.focusInput
command inpackage.json
with title "Focus Input Field" and category "Roo Code".roo-cline.focusInput
inregisterCommands.ts
to sendfocusInput
action to webview.handleMessage
inChatView.tsx
to focustextAreaRef
onfocusInput
action.ChatTextArea.tsx
to ensure text area fills parent width.This description was created by
for e7658b0. It will automatically update as commits are pushed.