EventControllerFocus.isFocus

bool isFocus()

Returns true if focus is within self, but not one of its children.

Returns

true if focus is within self, but not one of its children