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:
parent
977863ea07
commit
a87f5e4154
4 changed files with 9 additions and 6 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue