Function Control.hasFocus

Returns true if this is the current focused control. See focusMode.

bool hasFocus() nothrow @nogc const;