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

Browser: Add a context menu item to take a full document screenshot

This commit is contained in:
Timothy Flynn 2022-11-05 00:10:31 -04:00 committed by Andreas Kling
parent 95e591b61b
commit ea7ce76d20
3 changed files with 29 additions and 4 deletions

View file

@ -406,6 +406,7 @@ Tab::Tab(BrowserWindow& window)
m_page_context_menu->add_action(window.inspect_dom_node_action());
m_page_context_menu->add_separator();
m_page_context_menu->add_action(window.take_visible_screenshot_action());
m_page_context_menu->add_action(window.take_full_screenshot_action());
view().on_context_menu_request = [&](auto& screen_position) {
m_page_context_menu->popup(screen_position);
};