list-base: Set initial selection when gaining focus
When the focus moves into the view, an item gets focus. However, users expect it to algo become selected, if nothing was selected.
Indeed, GtkListBase's keyboard shortcuts for the arrow keys not only
move focus but also selection. Unless the user is holding Ctrl
,
selection is expected to follow focus.
I believe this shoudl be fixed in GtkListBase itself, but let's add a workaround for now.
Workaround for #2618 which also fixes #2489 (closed)