set_focusable


Description:

[ Version ( since = "4.12" ) ]
public void set_focusable (bool focusable)

Sets this to be focusable.

If an item is focusable, it can be focused using the keyboard. This works similar to [method@Gtk.Widget.set_focusable].

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, listitems are focusable.

Parameters:

this

a listitem

focusable

if the item should be focusable