signup: Use e.key instead of deprecated e.which.

Tested by making sure Enter works as expected in the signup flow.
This commit is contained in:
Priyank Patel 2021-05-31 16:37:23 +00:00 committed by Tim Abbott
parent baad874689
commit 607abc0b77
1 changed files with 2 additions and 2 deletions

View File

@ -155,8 +155,8 @@ $(() => {
"focusout keydown",
function (e) {
// check if it is the "focusout" or if it is a keydown, then check if
// the keycode was the one for "enter" (13).
if (e.type === "focusout" || e.which === 13) {
// the keycode was the one for "Enter".
if (e.type === "focusout" || e.key === "Enter") {
$(this).val($(this).val().trim());
}
},