mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-09 16:42:10 +02:00
LibGUI: Grant focus when activating a new stack/tab child widget
This makes opening a tab actually focus the opened tab.
This commit is contained in:
@@ -47,6 +47,7 @@ void StackWidget::set_active_widget(Widget* widget)
|
||||
m_active_widget = widget;
|
||||
if (m_active_widget) {
|
||||
m_active_widget->set_relative_rect(rect());
|
||||
m_active_widget->set_focus(true);
|
||||
m_active_widget->set_visible(true);
|
||||
}
|
||||
if (on_active_widget_change)
|
||||
|
||||
Reference in New Issue
Block a user