mirror of
https://github.com/RGBCube/serenity
synced 2025-05-22 15:55:07 +00:00
LibGUI: When tabbing between focusable widgets, skip over disabled ones.
This commit is contained in:
parent
c62be7bb2b
commit
b0ccd04a9c
1 changed files with 2 additions and 0 deletions
|
@ -531,6 +531,8 @@ Vector<GWidget*> GWindow::focusable_widgets() const
|
||||||
auto& child_widget = *static_cast<GWidget*>(child);
|
auto& child_widget = *static_cast<GWidget*>(child);
|
||||||
if (!child_widget.is_visible())
|
if (!child_widget.is_visible())
|
||||||
continue;
|
continue;
|
||||||
|
if (!child_widget.is_enabled())
|
||||||
|
continue;
|
||||||
collect_focusable_widgets(child_widget);
|
collect_focusable_widgets(child_widget);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue