Merge pull request #236 from one-some/united

Move shortcuts to Alt
This commit is contained in:
henk717
2022-12-17 00:37:18 +01:00
committed by GitHub

View File

@@ -3492,28 +3492,26 @@ $(document).ready(function(){
// Shortcuts // Shortcuts
$(window).keydown(function (ev) { $(window).keydown(function (ev) {
// Only ctrl prefixed (for now) if (ev.altKey)
if (!ev.ctrlKey) return;
let handled = true;
switch (ev.key) { switch (ev.key) {
// Ctrl+Z - Back // Alt+Z - Back
case "z": case "z":
button_actback.click(); button_actback.click();
break; break;
// Ctrl+Y - Forward // Alt+Y - Forward
case "y": case "y":
button_actfwd.click(); button_actfwd.click();
break; break;
// Ctrl+E - Retry // Alt+R - Retry
case "e": case "r":
button_actretry.click(); button_actretry.click();
break; break;
default: default:
handled = false; return;
} else {
return;
} }
ev.preventDefault();
if (handled) ev.preventDefault();
}); });
$("#anotetemplate").on("input", function() { $("#anotetemplate").on("input", function() {