Widgets with "focusable" set to false break the focus chain
Steps to reproduce
- Set "focusable" to false for a widget containing at least one focusable child.
- Give focus to the widget that preceeds that widget in the focus chain.
- Press Tab.
A concrete example would be setting "focusable" to false for the last ListBoxRow in the List Controls section of the GTK Demo application.
Current behavior
The focus will stay on the last widget before the focusable child. Pressing tab will neither give focus to the child nor jump to the next widget after the child. If the child has focus (after clicking), Shift+Tab also doesn't work to go back. However, pressing Shift+Tab from the next widget after the child will correctly give focus to it.
Expected outcome
After pressing Tab, the child will be focused.
Version information
GTK4 from the nightly GNOME SDK (commit 456a2f3b)