mirror of
https://github.com/RGBCube/serenity
synced 2025-07-10 09:07:35 +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:
parent
a6be213287
commit
d88c40568f
1 changed files with 4 additions and 0 deletions
|
@ -92,6 +92,10 @@ TextEditorWidget::TextEditorWidget()
|
||||||
m_find_textbox->set_focus(true);
|
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);
|
auto* statusbar = new GStatusBar(this);
|
||||||
|
|
||||||
m_editor->on_cursor_change = [statusbar, this] {
|
m_editor->on_cursor_change = [statusbar, this] {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue