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:
Priyank Patel
2021-05-29 20:18:33 +00:00
committed by Tim Abbott
parent 63cf47b63a
commit 53d2712027

View File

@@ -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")