Browser: Add context menu item for copying selected text

This commit is contained in:
Timothy Flynn 2021-07-14 08:33:35 -04:00 committed by Andreas Kling
commit 58cb37f986
Notes: sideshowbarker 2024-07-18 09:03:25 +09:00
3 changed files with 18 additions and 0 deletions

View file

@ -332,6 +332,8 @@ Tab::Tab(BrowserWindow& window, Type type)
m_page_context_menu->add_action(window.go_forward_action());
m_page_context_menu->add_action(window.reload_action());
m_page_context_menu->add_separator();
m_page_context_menu->add_action(window.copy_selection_action());
m_page_context_menu->add_separator();
m_page_context_menu->add_action(window.view_source_action());
m_page_context_menu->add_action(window.inspect_dom_tree_action());
hooks().on_context_menu_request = [&](auto& screen_position) {