Function Window.keyboardFocused

Wraps SDL_GetKeyboardFocus which verifies whether keyboard input is focused to the window

bool keyboardFocused() @property @trusted const;

Returns

true if keyboard input is focused, otherwise false