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!
This commit is contained in:
GitNees
2025-01-27 18:53:42 +01:00
committed by GitHub
parent 0d71146a2c
commit 70b577f5ac

View File

@@ -410,7 +410,7 @@ const CreateUploadModalBody = ({
{...form.getInputProps("recipients")}
onKeyDown={(e: React.KeyboardEvent<HTMLInputElement>) => {
// 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