diff --git a/web/src/pages/ConfigEditor.tsx b/web/src/pages/ConfigEditor.tsx index f0efee90a..dc3e642ec 100644 --- a/web/src/pages/ConfigEditor.tsx +++ b/web/src/pages/ConfigEditor.tsx @@ -143,6 +143,12 @@ function ConfigEditor() { scrollBeyondLastLine: false, theme: (systemTheme || theme) == "dark" ? "vs-dark" : "vs-light", }); + editorRef.current?.addCommand( + monaco.KeyMod.CtrlCmd | monaco.KeyCode.KeyS, + () => { + onHandleSaveConfig("saveonly"); + }, + ); } else if (editorRef.current) { editorRef.current.setModel(modelRef.current); } @@ -158,7 +164,7 @@ function ConfigEditor() { } schemaConfiguredRef.current = false; }; - }, [config, apiHost, systemTheme, theme]); + }, [config, apiHost, systemTheme, theme, onHandleSaveConfig]); // monitoring state