1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:47:46 +00:00

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
parent 2fda6ce159
commit 58cb37f986
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) {