mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:27:43 +00:00
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:
parent
ab289e183e
commit
867faa5d44
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue