mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 04:25:13 +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
Notes:
sideshowbarker
2024-07-19 01:00:28 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/867faa5d44d
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
Reference in a new issue