mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-04 01:05:58 +03:00
LibGUI: When tabbing between focusable widgets, skip over disabled ones.
This commit is contained in:
parent
c62be7bb2b
commit
b0ccd04a9c
Notes:
sideshowbarker
2024-07-19 13:57:59 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/b0ccd04a9c2
@ -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);
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user