summaryrefslogtreecommitdiff
path: root/Applications
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-12-07 19:48:30 +0100
committerAndreas Kling <kling@serenityos.org>2020-12-07 19:49:06 +0100
commit867faa5d44d1ab5751723ad1a37d3e179c94eee2 (patch)
treedc530266b50b9f11251fe0a189474ec35dcc92cc /Applications
parentab289e183efdb0a5f57dc512e2979dd86c749bb4 (diff)
downloadserenity-867faa5d44d1ab5751723ad1a37d3e179c94eee2.zip
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.
Diffstat (limited to 'Applications')
-rw-r--r--Applications/Browser/BookmarksBarWidget.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Applications/Browser/BookmarksBarWidget.cpp b/Applications/Browser/BookmarksBarWidget.cpp
index 9953fa9b67..89072bb286 100644
--- a/Applications/Browser/BookmarksBarWidget.cpp
+++ b/Applications/Browser/BookmarksBarWidget.cpp
@@ -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)