ListItem.setFocusable

Sets self to be focusable.

If an item is focusable, it can be focused using the keyboard. This works similar to gtk.widget.Widget.setFocusable.

Note that if items are not focusable, the keyboard cannot be used to activate them and selecting only works if one of the listitem's children is focusable.

By default, list items are focusable.

class ListItem
void
setFocusable
()

Parameters

focusable bool

if the item should be focusable