From 867faa5d44d1ab5751723ad1a37d3e179c94eee2 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 7 Dec 2020 19:48:30 +0100 Subject: [PATCH] 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. --- Applications/Browser/BookmarksBarWidget.cpp | 1 + 1 file changed, 1 insertion(+) 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)