mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 06:48:49 +00: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:
parent
d0578bfa32
commit
a2bdcfabc9
Notes:
sideshowbarker
2024-07-19 07:20:38 +09:00
Author: https://github.com/awesomekling
Commit: a2bdcfabc9
2 changed files with 2 additions and 0 deletions
|
@ -63,6 +63,7 @@ void TabWidget::set_active_widget(Widget* widget)
|
|||
m_active_widget = widget;
|
||||
if (m_active_widget) {
|
||||
m_active_widget->set_relative_rect(child_rect_for_size(size()));
|
||||
m_active_widget->set_focus(true);
|
||||
m_active_widget->set_visible(true);
|
||||
deferred_invoke([this](auto&) {
|
||||
if (on_change)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue