setFocusable

open fun setFocusable(focusable: Boolean)

Sets @self 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, list items are focusable.

Since

4.12

Parameters

focusable

if the item should be focusable