mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:57:43 +00:00
Browser: Add a context menu item to take a full document screenshot
This commit is contained in:
parent
95e591b61b
commit
ea7ce76d20
3 changed files with 29 additions and 4 deletions
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue