Script-Editor: Strg+S / Cmd+S speichert (Save-Shortcut, auch im CodeMirror-Feld) #179
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Ziel
Im Script-Editor (
ScriptEditorModal.svelte, aus #177) Strg+S / Cmd+S als Shortcut zum Speichern — loest dieselbe Aktion aus wie der "Speichern"-Button.Umsetzung (klein)
frontend/src/lib/components/editor/ScriptEditorModal.svelte:async function save()(Z.44) und einenonkeydown-Handler (Z.62, aktuell nur Escape).CodeEditor.svelteregistrieren (@codemirror/viewkeymap.of([{ key: "Mod-s", preventDefault: true, run: () => { onSave?.(); return true; } }])) und einen optionalenonSave-Callback-Prop durchreichen, den das Modal aufsavesetzt.Mod-sdeckt Ctrl (Linux/Win) und Cmd (Mac) ab.Akzeptanz
busy) kein Doppel-Submit.Bezug
#177 (Editor-Modal).
Branch
feat/editor-ctrl-s-save