MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / focusEditor

Function focusEditor

src/handlers/quickTools.js:630–644  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

628}
629
630function focusEditor() {
631 const { editor, activeFile } = editorManager;
632 if (!activeFile?.focused) {
633 return;
634 }
635
636 if (activeFile.type === "terminal" && activeFile.terminalComponent) {
637 activeFile.terminalComponent.focus();
638 return;
639 }
640
641 if (editor) {
642 editor.focus();
643 }
644}
645
646function resetKeys() {
647 state.shift = false;

Callers 2

toggleFunction · 0.85
removeSearchFunction · 0.85

Calls 1

focusMethod · 0.80

Tested by

no test coverage detected