mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 02:29:21 +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:
parent
28f74df2e6
commit
5431e81bc3
Notes:
sideshowbarker
2024-07-19 06:15:08 +09:00
Author: https://github.com/FalseHonesty
Commit: 5431e81bc3
Pull-request: https://github.com/SerenityOS/serenity/pull/2293
3 changed files with 20 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue