Fixed ctrl+s

This commit is contained in:
Magnus Åhall 2026-06-13 07:52:07 +02:00
parent 0001cdebdc
commit 1055404dc0

View file

@ -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