From ced415c3a5e7066fb0b9e89dce905b5c11bc0207 Mon Sep 17 00:00:00 2001 From: Alexander Heldt Date: Sun, 12 Jul 2026 17:12:59 +0000 Subject: [PATCH] Make Save the exercise dialog's default button MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit All three menu buttons were implicit submit buttons, so pressing Enter (or the iOS keyboard's "Go") triggered implicit form submission against the first one — the hidden Delete button — which closed the dialog and silently discarded the typed exercise. Delete and Cancel are now type="button", leaving Save as the form's default button. --- src/index.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/index.html b/src/index.html index 7de9893..a4db13b 100644 --- a/src/index.html +++ b/src/index.html @@ -277,8 +277,11 @@ - - + + +