isInFocus

open fun isInFocus(): Boolean(source)

Test if this element is focused, or has a focused child.

Return

true if this or a child of this element is focused in the current gui context