FocusEvent.gained

bool gained() const @safe nothrow @nogc

Checks if focus was gained.

Returns

true if widget gained focus