safeFocus

fun safeFocus(component: Inputtable?): Boolean

try to focus a component, without throwing an exception.

Return

true if the component was focused successfully, and false if it is not Drawable.focusable, or if it is already focused.

Since

1.0.4

See also