{{newinoldin|[[0.8.0]]|080|[[0.9.0]]|090|type=function|text=Moved to the [[love.window]] module as [[love.window.hasFocus]]}}
Checks if the game window has keyboard focus.
== Function ==
=== Synopsis ===
<source lang="lua">
focus = love.graphics.hasFocus( )
</source>
=== Arguments ===
None.
=== Returns ===
{{param|boolean|focus|True if the window has the focus or false if not.}}
== See Also ==
* [[parent::love.graphics]]
[[Category:Functions]]
{{#set:Description=Checks if the game window has keyboard focus.}}
{{#set:Since=080}}
{{#set:Sub-Category=Window}}
== Other Languages ==
{{i18n|love.graphics.hasFocus}}