mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 19:04:58 +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:
@@ -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] {
|
||||
|
||||
Reference in New Issue
Block a user