1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:07:35 +00:00

LibGUI: Don't focus BreadcrumbBar segments on click

This commit is contained in:
Andreas Kling 2020-12-14 21:44:03 +01:00
parent b10255f93f
commit 396b09a1ec

View file

@ -70,6 +70,7 @@ void BreadcrumbBar::append_segment(const String& text, const Gfx::Bitmap* icon,
button.set_button_style(Gfx::ButtonStyle::CoolBar);
button.set_text(text);
button.set_icon(icon);
button.set_focus_policy(FocusPolicy::TabFocus);
button.set_checkable(true);
button.set_exclusive(true);
button.on_click = [this, index = m_segments.size()](auto) {