mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:37:35 +00:00
TextEditor: Focus the editor after opening a new file
This commit is contained in:
parent
1c34348b0c
commit
7c74d3a657
1 changed files with 2 additions and 0 deletions
|
@ -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()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue