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;
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() {