requestFocus

fun requestFocus(useFocusTraversable: Boolean = false, showFocusBorder: Boolean = false)

Gives the input focus to this node, so that keyboard events are sent to it.

Parameters

useFocusTraversable

If true, and this node isn't focusTraversable, then look for the next node in the scene tree which is.

showFocusBorder

Normally, the Region.focusBorder. Setting showFocusBorder = true turns on this border.