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
Notes: sideshowbarker 2024-07-19 13:57:59 +09:00

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);
}
};