From 70b577f5ac8385cfc6a22ffee4c7e317e3cc6403 Mon Sep 17 00:00:00 2001 From: GitNees <37367608+GitNees@users.noreply.github.com> Date: Mon, 27 Jan 2025 18:53:42 +0100 Subject: [PATCH] feat: ability to add email to recipients list by clicking enter (#760) I encountered so many times now that I send by email, which I use 99% of the time, it didnt got send, because the mail was not accepted when pressing enter. Also because no confirmation mail is send, i never knew it arrived. Ill work on that code later, but adding enter to that field, will help a lot! --- frontend/src/components/upload/modals/showCreateUploadModal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/upload/modals/showCreateUploadModal.tsx b/frontend/src/components/upload/modals/showCreateUploadModal.tsx index d177d8c..3dce408 100644 --- a/frontend/src/components/upload/modals/showCreateUploadModal.tsx +++ b/frontend/src/components/upload/modals/showCreateUploadModal.tsx @@ -410,7 +410,7 @@ const CreateUploadModalBody = ({ {...form.getInputProps("recipients")} onKeyDown={(e: React.KeyboardEvent) => { // Add email on comma or semicolon - if (e.key === "," || e.key === ";") { + if (e.key === "Enter" || e.key === "," || e.key === ";") { e.preventDefault(); const inputValue = ( e.target as HTMLInputElement