Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
social_auth: Fix keyboard navigation on accounts in oauth.
Pratik Chandafd355e2028ce
diff --git a/templates/zerver/social_auth_select_email.html b/templates/zerver/social_auth_select_email.htmlindex 88f8665ffef..46467176b14 100644--- a/templates/zerver/social_auth_select_email.html+++ b/templates/zerver/social_auth_select_email.html@@ -13,7 +13,7 @@</div><div class="white-box">- <form method="post" class="select-email-form" action="/complete/{{ backend }}/">+ <form method="post" class="select-email-form" action="/complete/{{ backend }}/" tabindex="0"><div class="choose-email-box"><input type="hidden" name="email" value="{{ primary_email }}" />{% if avatar_urls[primary_email] %}@@ -37,7 +37,7 @@</div></form>{% for email in verified_non_primary_emails %}- <form method="post" class="select-email-form" action="/complete/{{ backend }}/">+ <form method="post" class="select-email-form" action="/complete/{{ backend }}/" tabindex="0"><div class="choose-email-box"><input type="hidden" name="email" value="{{ email }}" />{% if avatar_urls[email] %}diff --git a/web/src/portico/signup.ts b/web/src/portico/signup.tsindex c45ead140f3..c798e9e8779 100644--- a/web/src/portico/signup.ts+++ b/web/src/portico/signup.ts@@ -334,6 +334,13 @@ $(() => {$(e.target).hide();});+ $("form.select-email-form").on("keydown", function (e) {+ if (e.key === "Enter") {+ e.preventDefault();+ $(this).trigger("submit");+ }+ });+$<HTMLSelectElement>("#how-realm-creator-found-zulip select").on("change", function () {const elements = new Map([["other", "how-realm-creator-found-zulip-other"],