Move shortcuts to Alt from Ctrl

This commit is contained in:
somebody 2022-12-16 16:47:22 -06:00
parent e6656d68a1
commit 9efbe381cf
1 changed files with 20 additions and 22 deletions

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; switch (ev.key) {
// Alt+Z - Back
let handled = true; case "z":
switch (ev.key) { button_actback.click();
// Ctrl+Z - Back break;
case "z": // Alt+Y - Forward
button_actback.click(); case "y":
break; button_actfwd.click();
// Ctrl+Y - Forward break;
case "y": // Alt+R - Retry
button_actfwd.click(); case "r":
break; button_actretry.click();
// Ctrl+E - Retry break;
case "e": default:
button_actretry.click(); return;
break; } else {
default: return;
handled = false;
} }
ev.preventDefault();
if (handled) ev.preventDefault();
}); });
$("#anotetemplate").on("input", function() { $("#anotetemplate").on("input", function() {