Bläddra i källkod

TextEditor: Focus the editor after opening a new file

Andreas Kling 5 år sedan
förälder
incheckning
7c74d3a657
1 ändrade filer med 2 tillägg och 0 borttagningar
  1. 2 0
      Applications/TextEditor/TextEditorWidget.cpp

+ 2 - 0
Applications/TextEditor/TextEditorWidget.cpp

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