mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
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:
committed by
Tim Abbott
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")
|
||||
|
||||
Reference in New Issue
Block a user