diff --git a/resources/scripts/components/server/files/FileEditContainer.tsx b/resources/scripts/components/server/files/FileEditContainer.tsx index cccaa6a3f..ece5933f4 100644 --- a/resources/scripts/components/server/files/FileEditContainer.tsx +++ b/resources/scripts/components/server/files/FileEditContainer.tsx @@ -241,6 +241,11 @@ export default () => { onMount={(editor, monaco) => { editorRef.current = editor; useMonacoEx(monaco); // Integrate monaco-editor-ex + + // Add custom key bindings for saving + editor.addCommand(monaco.KeyMod.CtrlCmd | monaco.KeyCode.KEY_S, () => { + save(); // Call the save function + }); }} /> )}