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
commit 5431e81bc3
Notes: sideshowbarker 2024-07-19 06:15:08 +09:00
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