()
| 628 | } |
| 629 | |
| 630 | function 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 | |
| 646 | function resetKeys() { |
| 647 | state.shift = false; |
no test coverage detected