Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
feat: Add cmd+enter to submit tasks immediately
Implements cmd+enter (Mac) / ctrl+enter (Windows/Linux) keyboard shortcut
for submitting new tasks on the tasks page. Regular enter still creates
a new line in the textarea.

Fixes #21179

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
  • Loading branch information
bpmct and claude committed Dec 9, 2025
commit 802cb42684e53a0c6a99060f5898ce29b7ef4e5f
17 changes: 17 additions & 0 deletions site/src/modules/tasks/TaskPrompt/TaskPrompt.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -468,10 +468,27 @@ const PromptTextarea: FC<PromptTextareaProps> = ({
isSubmitting,
...props
}) => {
const handleKeyDown = (e: React.KeyboardEvent<HTMLTextAreaElement>) => {
// Submit form on Cmd+Enter (Mac) or Ctrl+Enter (Windows/Linux)
if (e.key === "Enter" && (e.metaKey || e.ctrlKey)) {
e.preventDefault();
// Trigger form submission by finding the closest form and submitting it
const form = e.currentTarget.closest("form");
if (form) {
form.requestSubmit();
}
}
// Call the original onKeyDown if it exists
if (props.onKeyDown) {
props.onKeyDown(e);
}
};

return (
<div className="relative">
<TextareaAutosize
{...props}
onKeyDown={handleKeyDown}
required
id="prompt"
name="prompt"
Expand Down
Loading