1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-21 09:35:08 +00:00

LibGUI: When tabbing between focusable widgets, skip over disabled ones.

This commit is contained in:
Andreas Kling 2019-05-24 22:57:05 +02:00
parent c62be7bb2b
commit b0ccd04a9c

View file

@ -531,6 +531,8 @@ Vector<GWidget*> GWindow::focusable_widgets() const
auto& child_widget = *static_cast<GWidget*>(child);
if (!child_widget.is_visible())
continue;
if (!child_widget.is_enabled())
continue;
collect_focusable_widgets(child_widget);
}
};