From d5f34872031a90bb449c4c1f9b5080f25a842238 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 25 Aug 2019 21:44:59 +0200 Subject: [PATCH] TextEditor: Select everything in the find textbox when pressing Ctrl+F This allows you to press Ctrl+F and immediately start typing a new search string, instead of having to remove the old one first. :^) --- Applications/TextEditor/TextEditorWidget.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Applications/TextEditor/TextEditorWidget.cpp b/Applications/TextEditor/TextEditorWidget.cpp index fefc9e5dcd..27f7181acd 100644 --- a/Applications/TextEditor/TextEditorWidget.cpp +++ b/Applications/TextEditor/TextEditorWidget.cpp @@ -92,6 +92,7 @@ TextEditorWidget::TextEditorWidget() m_find_action = GAction::create("Find...", { Mod_Ctrl, Key_F }, [this](auto&) { m_find_widget->set_visible(true); m_find_textbox->set_focus(true); + m_find_textbox->select_all(); }); m_editor->add_custom_context_menu_action(*m_find_action);