1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:48:12 +00:00

Browser: Allow Ctrl+clicking on bookmark bar buttons :^)

This commit is contained in:
Andreas Kling 2020-05-12 20:35:45 +02:00
parent 977863ea07
commit a87f5e4154
4 changed files with 9 additions and 6 deletions

View file

@ -123,9 +123,9 @@ void BookmarksBarWidget::did_update_model()
button.set_preferred_size(font().width(title) + 32, 20);
button.set_relative_rect(rect);
button.on_click = [title, url, this](auto) {
button.on_click = [title, url, this](auto modifiers) {
if (on_bookmark_click)
on_bookmark_click(title, url);
on_bookmark_click(title, url, modifiers);
};
width += rect.width();