diff options
Diffstat (limited to 'Applications/TextEditor/main.cpp')
-rw-r--r-- | Applications/TextEditor/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Applications/TextEditor/main.cpp b/Applications/TextEditor/main.cpp index 0b0046b84e..d0354d4353 100644 --- a/Applications/TextEditor/main.cpp +++ b/Applications/TextEditor/main.cpp @@ -12,6 +12,8 @@ int main(int argc, char** argv) auto text_widget = TextEditorWidget::construct(); window->set_main_widget(text_widget); + text_widget->editor().set_focus(true); + window->on_close_request = [&]() -> GWindow::CloseRequestDecision { if (text_widget->request_close()) return GWindow::CloseRequestDecision::Close; |