|
@@ -87,6 +87,10 @@ void Breadcrumbbar::append_segment(String text, Gfx::Bitmap const* icon, String
|
|
if (on_segment_click)
|
|
if (on_segment_click)
|
|
on_segment_click(index);
|
|
on_segment_click(index);
|
|
};
|
|
};
|
|
|
|
+ button.on_focus_change = [this, index = m_segments.size()](auto has_focus, auto) {
|
|
|
|
+ if (has_focus && on_segment_click)
|
|
|
|
+ on_segment_click(index);
|
|
|
|
+ };
|
|
button.on_drop = [this, index = m_segments.size()](auto& drop_event) {
|
|
button.on_drop = [this, index = m_segments.size()](auto& drop_event) {
|
|
if (on_segment_drop)
|
|
if (on_segment_drop)
|
|
on_segment_drop(index, drop_event);
|
|
on_segment_drop(index, drop_event);
|