Browse Source

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.
Andreas Kling 4 năm trước cách đây
mục cha
commit
867faa5d44
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      Applications/Browser/BookmarksBarWidget.cpp

+ 1 - 0
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)