perf(web): return to home page when pressed escape on auth page
This commit is contained in:
parent
8eb11f6035
commit
f515dc3944
@ -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;
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user