docs/bevy/release-content/release-notes/text_input.md 769 B · 15 lines · raw · history

1 ---
2 title: "TextInput"
3 authors: ["@viridia"]
4 pull_requests: []
5 ---
6
7 The `EditableText` component has been split into two components, which are now `EditableText`
8 and `TextInput`. The `EditableText` component, which lives in the `bevy::text` crate, holds the
9 state of a text input field, but no longer has any built-in observers - that is, it does not
10 behave like a widget (headless or otherwise), but merely a holder of state.
11
12 All of the widget-like behaviors (responding to keystrokes) have been moved to a new `TextInput`
13 component which lives in the `bevy::ui_widgets` crate. Not only is the arrangement more consistent
14 with the other widgets, but in addition this new component also has properties which are only
15 interesting to widgets, like a "read-only" option.