Browser: Don't focus bookmarks toolbar buttons when clicking them

They should only receive focus when tabbed to. This matches what we
already do for other toolbar buttons.
This commit is contained in:
Andreas Kling 2020-12-07 19:48:30 +01:00
parent ab289e183e
commit 867faa5d44
Notes: sideshowbarker 2024-07-19 01:00:28 +09:00

View file

@ -139,6 +139,7 @@ void BookmarksBarWidget::model_did_update(unsigned)
button.set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/filetype-html.png"));
button.set_preferred_size(font().width(title) + 32, 20);
button.set_relative_rect(rect);
button.set_focus_policy(GUI::FocusPolicy::TabFocus);
button.on_click = [title, url, this](auto modifiers) {
if (on_bookmark_click)