ListBox with unfocusable child ListBoxRows breaks focus chain
Having a ListBox where can-focus
is set to true
for the ListBox itself, but false
for the contained ListBoxRows, somehow breaks the focus chain.
What I am trying to accomplish is a ListBox which the user can focus and then alter the selection using the arrow keys. I.e. I only want TAB to move focus to the outer ListBox but not to each individual ListBoxRow.
Steps to reproduce / Current behavior
- Run listbox-focus.c
- Press TAB and observed that no widget gets focused
- Press Shift+TAB three or more times and observe that the focus gets stuck at the top-most button
Expected outcome
When pressing TAB repeatedly, I expect the focus to move as follows:
- ListBox
- Button 1
- Button 2
- ListBox
- ...
Version information
Observed on Fedora 35 running GTK 3.24.31.
Edited by William Sjöblom