Strg+Return -> Go immediately to Settings page

This commit is contained in:
DL6ER
2017-01-02 13:24:48 +01:00
parent 79073e15c8
commit ed01434506
2 changed files with 11 additions and 2 deletions

View File

@@ -196,3 +196,12 @@ if(versionCompare(piholeVersion, "v2.9.5") < 1)
{
$("#btnSearchExact").hide();
}
// Handle Strg + Enter button on Login page
$(document).keypress(function(e) {
console.log(e.which);
if(e.which === 10 && $("#loginpw").is(":focus")) {
$("#loginform").attr('action', 'settings.php');
$("#loginform").submit();
}
});