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

TextEditor: Add search-related actions to the text editor context menu

Using the new GTextEditor::add_custom_context_menu_action() mechanism.

Fixes #478.
This commit is contained in:
Andreas Kling 2019-08-25 21:38:13 +02:00
parent a6be213287
commit d88c40568f

View file

@ -92,6 +92,10 @@ TextEditorWidget::TextEditorWidget()
m_find_textbox->set_focus(true);
});
m_editor->add_custom_context_menu_action(*m_find_action);
m_editor->add_custom_context_menu_action(*m_find_next_action);
m_editor->add_custom_context_menu_action(*m_find_previous_action);
auto* statusbar = new GStatusBar(this);
m_editor->on_cursor_change = [statusbar, this] {