summaryrefslogtreecommitdiff
path: root/Applications
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-01-23 21:29:59 +0100
committerAndreas Kling <kling@serenityos.org>2020-01-23 21:33:15 +0100
commit7c74d3a6576b892e4f1d9f1aa9305b01ad673cb4 (patch)
tree8761c231008da43267fb99939f86ffb9dadb2c03 /Applications
parent1c34348b0cac714c2b5e775eccf3f9fd14afaf16 (diff)
downloadserenity-7c74d3a6576b892e4f1d9f1aa9305b01ad673cb4.zip
TextEditor: Focus the editor after opening a new file
Diffstat (limited to 'Applications')
-rw-r--r--Applications/TextEditor/TextEditorWidget.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Applications/TextEditor/TextEditorWidget.cpp b/Applications/TextEditor/TextEditorWidget.cpp
index 663f118189..fd53e7c3cc 100644
--- a/Applications/TextEditor/TextEditorWidget.cpp
+++ b/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()