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

Browser: Pop up a context menu when requested on a bookmark button

This right click context menu currently allows for the removal of
bookmarks as well as opening them in a new tab.
This commit is contained in:
FalseHonesty 2020-05-18 21:31:12 -04:00 committed by Andreas Kling
parent 28f74df2e6
commit 5431e81bc3
3 changed files with 20 additions and 3 deletions

View file

@ -356,7 +356,7 @@ void Tab::did_become_active()
m_statusbar->set_text(String::format("Loading (%d pending resources...)", Web::ResourceLoader::the().pending_loads()));
};
BookmarksBarWidget::the().on_bookmark_click = [this](auto&, auto& url, unsigned modifiers) {
BookmarksBarWidget::the().on_bookmark_click = [this](auto& url, unsigned modifiers) {
if (modifiers & Mod_Ctrl)
on_tab_open_request(url);
else