mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 23:59:49 +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:
parent
e8e8741c88
commit
d5f3487203
Notes:
sideshowbarker
2024-07-19 12:31:30 +09:00
Author: https://github.com/awesomekling
Commit: d5f3487203
1 changed files with 1 additions and 0 deletions
|
@ -92,6 +92,7 @@ TextEditorWidget::TextEditorWidget()
|
||||||
m_find_action = GAction::create("Find...", { Mod_Ctrl, Key_F }, [this](auto&) {
|
m_find_action = GAction::create("Find...", { Mod_Ctrl, Key_F }, [this](auto&) {
|
||||||
m_find_widget->set_visible(true);
|
m_find_widget->set_visible(true);
|
||||||
m_find_textbox->set_focus(true);
|
m_find_textbox->set_focus(true);
|
||||||
|
m_find_textbox->select_all();
|
||||||
});
|
});
|
||||||
|
|
||||||
m_editor->add_custom_context_menu_action(*m_find_action);
|
m_editor->add_custom_context_menu_action(*m_find_action);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue