diff --git a/src/js/constants.js b/src/js/constants.js index e9040364..8ec53a90 100644 --- a/src/js/constants.js +++ b/src/js/constants.js @@ -1043,7 +1043,7 @@ class Menu {
- + @@ -1124,6 +1124,10 @@ class Menu { document.getElementById('verify'), 'click', function (e) { + document.getElementById('email_auth_key').value = document + .getElementById('email_auth_key') + .value.trim(); + menu.VerifyEmail(); }, ]); @@ -1268,6 +1272,13 @@ class Menu { .getElementById('email_auth_key') .addEventListener('keydown', function (event) { if (event.key === 'Enter') { + document.getElementById('email_auth_key').value = document + .getElementById('email_auth_key') + .value.trim(); + + document.getElementById('email_auth_key').selectionStart = + document.getElementById('email_auth_key').value.length; + document.getElementById('verify').click(); } }),