From b25408d283cd844278851bb4788bd96c46aa6f13 Mon Sep 17 00:00:00 2001 From: Oleksandr Kozachuk <201152+ok2@users.noreply.github.com> Date: Wed, 10 Jun 2026 00:21:25 +0200 Subject: [PATCH] helwasm: Enter in the name field jumps to the master field --- helwasm/index.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/helwasm/index.html b/helwasm/index.html index d3403cf..3b88973 100644 --- a/helwasm/index.html +++ b/helwasm/index.html @@ -490,7 +490,11 @@ $("#qname").addEventListener("input", live); $("#master").addEventListener("input", live); window.addEventListener("resize", fitResult); // re-fit on rotate / width change - $("#qname").addEventListener("keydown", (e) => e.key === "Enter" && quickGen(false)); + // Enter in the name field jumps to the master field (its blur then normalises + // the name and regenerates). Works with the iOS keyboard "return" key too. + $("#qname").addEventListener("keydown", (e) => { + if (e.key === "Enter") { e.preventDefault(); $("#master").focus(); } + }); // On blur, rewrite the name field to the canonical form hel parsed it as // (name + mode + seq + date + comment), so you see exactly what was used. $("#qname").addEventListener("blur", () => {