mirror of https://github.com/zulip/zulip.git
settings_org: Use e.key instead of deprecated e.keyCode.
Tested by making sure pressing Enter in the input field of the changed organization settings (the organization name for example) clicks the save changes button if present.
This commit is contained in:
parent
63cf47b63a
commit
53d2712027
|
@ -1009,7 +1009,7 @@ export function build_page() {
|
|||
|
||||
$(".org-subsection-parent").on("keydown", "input", (e) => {
|
||||
e.stopPropagation();
|
||||
if (e.keyCode === 13) {
|
||||
if (e.key === "Enter") {
|
||||
e.preventDefault();
|
||||
$(e.target)
|
||||
.closest(".org-subsection-parent")
|
||||
|
|
Loading…
Reference in New Issue