From d621f8cedab97d10c8cb530b50c23154ca40b559 Mon Sep 17 00:00:00 2001 From: n9k Date: Sat, 11 Jun 2022 22:59:39 +0000 Subject: [PATCH] Reorder chat form inputs so submit has priority When you press enter to submit a form and there are multiple submittable inputs (e.g. type="image" / type="submit"), Firefox chooses the one that appears first in markup. Before this commit the image input (aka the "I want a new captcha" button) appeared before the submit button which meant pressing enter just reloaded the captcha instead of submitting the comment. --- anonstream/static/anonstream.js | 2 +- anonstream/static/style.css | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/anonstream/static/anonstream.js b/anonstream/static/anonstream.js index f68c5d5..b74dcc7 100644 --- a/anonstream/static/anonstream.js +++ b/anonstream/static/anonstream.js @@ -41,11 +41,11 @@ const jsmarkup_chat_form = `\ × + -