Skip to content

Commit

Permalink
Update FileEditContainer.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
kokofixcomputers authored Oct 28, 2024
1 parent b69f95c commit d1fc61a
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
}}
/>
)}
Expand Down

0 comments on commit d1fc61a

Please sign in to comment.