fixed enter button when logging/registering

This commit is contained in:
Václav Šmejkal 2024-05-21 19:28:34 +02:00
parent 888c7a5019
commit fa48f58cf1
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -73,4 +73,13 @@ function logout()
document.getElementById("login_buttons").style.display = "inline";
document.getElementById("logout_button").style.display = "none";
document.getElementById("login_indicator").style.display = "none";
}
}
document.addEventListener("keypress", function(event)
{
if (event.key == "Enter" && document.getElementById("login_pane").style.display == "visible")
{
event.preventDefault();
document.getElementById("sub_btn").click();
}
});