mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
passwords: Add keyboard accessibility for show/hide password icons.
Tweaked by tabbott to add the required tabindex configuration in the password reset, password change, and registration forms as well.
This commit is contained in:
committed by
Tim Abbott
parent
a43e9140f2
commit
b0a4b8e439
@@ -172,4 +172,11 @@ export function setup_password_visibility_toggle(
|
||||
e.stopPropagation();
|
||||
toggle_password_visibility(password_field_id, password_selector, tippy_tooltips);
|
||||
});
|
||||
$(password_selector).on("keydown", (e) => {
|
||||
if (e.key === "Enter") {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
toggle_password_visibility(password_field_id, password_selector, tippy_tooltips);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user