mirror of https://github.com/zulip/zulip.git
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:
parent
baad874689
commit
607abc0b77
|
@ -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());
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue