Timothy Jaeryang Baek 2 months ago
parent
commit
cd3904046d
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/lib/components/common/CodeEditor.svelte

+ 4 - 0
src/lib/components/common/CodeEditor.svelte

@@ -47,6 +47,10 @@
 
 	let codeEditor;
 
+	export const focus = () => {
+		codeEditor.focus();
+	};
+
 	let isDarkMode = false;
 	let editorTheme = new Compartment();
 	let editorLanguage = new Compartment();