Skip to content

Commit a0ce7cb

Browse files
committed
feat: Implement shortcut to focus DevChat input
- Added handler for 'focusDevChatInput' to focus input on command - Streamlines user interaction by reducing mouse dependency - Enhances efficiency and usability per feature request
1 parent fa27321 commit a0ce7cb

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/views/components/InputMessage/index.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,12 @@ const InputMessage = observer((props: any) => {
194194
chat.commonMessage(message.message, []);
195195
}
196196
);
197+
messageUtil.registerHandler(
198+
"focusDevChatInput",
199+
(message: { command: string; message: string }) => {
200+
inputRef.current.focus();
201+
}
202+
);
197203
messageUtil.registerHandler(
198204
"appendContext",
199205
(message: { command: string; context: string }) => {

0 commit comments

Comments
 (0)