Prechádzať zdrojové kódy

TextEditor: Focus the editor after opening a new file

Andreas Kling 5 rokov pred
rodič
commit
7c74d3a657

+ 2 - 0
Applications/TextEditor/TextEditorWidget.cpp

@@ -442,6 +442,8 @@ void TextEditorWidget::open_sesame(const String& path)
     m_document_opening = true;
 
     set_path(FileSystemPath(path));
+
+    m_editor->set_focus(true);
 }
 
 bool TextEditorWidget::request_close()