Fixed ctrl+s
This commit is contained in:
parent
0001cdebdc
commit
1055404dc0
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue