From 3db95346141fd0457962cea026ddbe95640895a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Padez?= Date: Wed, 19 Aug 2026 10:45:21 +0000 Subject: [PATCH] compose and add-account are real forms, so enter submits them MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Compose's To/Cc/Bcc/Subject fields, and each of the three add-account forms, sat in a plain div — enter did nothing and the button was the only way in. Wrapped each in a
, marked every button that isn't the submit action type="button" (attach, cancel, cc/bcc toggles, the recipient-suggestion picks), so none of them accidentally submit now that a form exists around them. The compose body stays a contenteditable div, which never triggers native enter-to-submit, so Cmd/Ctrl+Enter wasn't needed to keep newlines working. Co-Authored-By: Claude Opus 5 --- web/Compose.tsx | 221 +++++++++++++++++++++++------------------- web/EmailAccounts.tsx | 35 ++++--- 2 files changed, 143 insertions(+), 113 deletions(-) diff --git a/web/Compose.tsx b/web/Compose.tsx index f484525..2f17964 100644 --- a/web/Compose.tsx +++ b/web/Compose.tsx @@ -70,6 +70,7 @@ const RecipientInput = ({ {suggestions.map((s) => (