isFocused

external fun isFocused(): Promise<Boolean>(source)

Gets the window's current focus state.