From f78935ccc9e59f41a84eaa95efe6803b92580582 Mon Sep 17 00:00:00 2001 From: 4ian <1280130+4ian@users.noreply.github.com> Date: Sun, 2 Aug 2026 10:37:31 +0000 Subject: [PATCH] [Auto] [Improve] Clarified Text entry object input capture, Backspace, clearing text, and fixed reference link --- automated_updates_data.json | 4 ++++ docs/gdevelop5/objects/text_entry/index.md | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/automated_updates_data.json b/automated_updates_data.json index 2fa8e494dbb..5919179a929 100644 --- a/automated_updates_data.json +++ b/automated_updates_data.json @@ -104,6 +104,10 @@ { "date": "2026-07-07", "summary": "Improved keyboard docs: added 'Key just pressed' (held vs one-frame) and 'Any key released' conditions, control-remapping note, and a reference list of valid key names" + }, + { + "date": "2026-08-02", + "summary": "Improved Text entry object docs: noted invisible input capture and Backspace support, keyboard-only limitation, clearing/presetting the stored text, and fixed the mislabeled reference link" } ] } diff --git a/docs/gdevelop5/objects/text_entry/index.md b/docs/gdevelop5/objects/text_entry/index.md index 69032879432..9c6a381fb90 100644 --- a/docs/gdevelop5/objects/text_entry/index.md +++ b/docs/gdevelop5/objects/text_entry/index.md @@ -9,6 +9,8 @@ title: Text entry object The text entry object captures user input and stores it in memory. You can use this object to simulate text input fields. For example, you might use the text entry object to provide a way that the player of your game can enter his/her name or any other information. +The object itself is invisible on screen: it only listens to the keyboard. To show the captured text to the player, you need to display it with another object such as a [Text object](/gdevelop5/objects/text). Pressing Backspace removes the last typed character. It only works with a physical keyboard, which is why the [Text Input](/gdevelop5/objects/text_input) object should be preferred, especially for mobile games. + ### Add text entry object After creating a new object from the Objects Editor list, select "Text entry" from the displayed list of choices @@ -37,6 +39,8 @@ Using events, it is possible to enable or disable the "Text entry" object. Event ![](textentryobjectevents.png) +You can also change the stored text with events. The "Text in memory" action lets you clear the captured text (set it to an empty string) once it has been validated, or fill it with a default value before the player starts typing. + ## Examples !!! note @@ -51,4 +55,4 @@ Using events, it is possible to enable or disable the "Text entry" object. Event ## Reference -All actions, conditions and expressions are listed in [the shape painter reference page](/gdevelop5/all-features/text-entry-object/reference/). \ No newline at end of file +All actions, conditions and expressions are listed in [the Text entry object reference page](/gdevelop5/all-features/text-entry-object/reference/). \ No newline at end of file