diff --git a/static/js/app.mjs b/static/js/app.mjs index 756f486..baefe87 100644 --- a/static/js/app.mjs +++ b/static/js/app.mjs @@ -85,6 +85,7 @@ export class App { // Most keybindings is Alt+Shift, since the popular browsers at the time (2023) allows to override thees. // Ctrl+S is the exception to using Alt+Shift, since it is overridable and in such widespread use for saving. // Thus, the exception is acceptable to consequent use of alt+shift. + const CTRL = !event.shiftKey && event.ctrlKey && !event.altKey const SHIFT_ALT = event.shiftKey && !event.ctrlKey && event.altKey const SHIFT_CTRL_ALT = event.shiftKey && event.ctrlKey && event.altKey @@ -121,7 +122,7 @@ export class App { break case 'S': - if (!SHIFT_ALT) { handled = false; break } + if (!CTRL) { handled = false; break } this.nodeUI.saveNode() break