Skip to content

Commit 852663e

Browse files
committed
remove preventDefault
1 parent 7b3843b commit 852663e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

site/src/modules/tasks/TaskPrompt/TaskPrompt.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,6 @@ const CreateTaskForm: FC<CreateTaskFormProps> = ({ templates, onSuccess }) => {
234234
const handleKeyDown = (e: React.KeyboardEvent<HTMLTextAreaElement>) => {
235235
// Submit form on Cmd+Enter (Mac) or Ctrl+Enter (Windows/Linux)
236236
if (e.key === "Enter" && (e.metaKey || e.ctrlKey)) {
237-
e.preventDefault();
238237
onSubmit(e);
239238
}
240239
};

0 commit comments

Comments
 (0)