1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-19 17:55:07 +00:00

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. :^)
This commit is contained in:
Andreas Kling 2019-08-25 21:44:59 +02:00
parent e8e8741c88
commit d5f3487203

View file

@ -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);