{{newin|[[0.9.0]]|090|type=function}}
Enables or disables [[love.textinput|text input]] events. It is enabled by default on Windows, Mac, and Linux, and disabled by default on iOS and Android.

On touch devices, this shows the system's native on-screen keyboard when it's enabled.
== Function ==
=== Synopsis ===
<source lang="lua">
love.keyboard.setTextInput( enable )
</source>
=== Arguments ===
{{param|boolean|enable|Whether text input events should be enabled.}}
=== Returns ===
Nothing.

== Function ==
{{newin|[[0.10.0]]|0100|type=variant}}
On iOS and Android this variant tells the OS that the specified rectangle is where text will show up in the game, which prevents the system on-screen keyboard from covering the text.
=== Synopsis ===
<source lang="lua">
love.keyboard.setTextInput( enable, x, y, w, h )
</source>
=== Arguments ===
{{param|boolean|enable|Whether text input events should be enabled.}}
{{param|number|x|Text rectangle x position.}}
{{param|number|y|Text rectangle y position.}}
{{param|number|w|Text rectangle width.}}
{{param|number|h|Text rectangle height.}}
=== Returns ===
Nothing.

== See Also ==
* [[parent::love.keyboard]]
* [[love.keyboard.hasTextInput]]
* [[love.textinput]]
[[Category:Functions]]
{{#set:Description=Enables or disables [[love.textinput|text input]] events.}}
== Other Languages ==
{{i18n|love.keyboard.setTextInput}}