perf(web): return to home page when pressed escape on auth page

This commit is contained in:
Masahiko AMANO 2023-02-15 19:32:05 +03:00
parent 8eb11f6035
commit f515dc3944

View File

@ -24,3 +24,14 @@ $("#auth").on("submit", function submit(e) {
}
});
});
$(document).keyup(function (e) {
switch (e.key) {
case "Esc":
case "Escape":
location.href = "/";
break;
default:
return;
}
});