1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Modified for GPUI Deck: expose the existing multiline engine without editor
// presentation or a second focus owner.
use ;
use ;
/// State for editing ordinary multi-line text.
///
/// This is the shared editing engine in its multi-line kind. Code-editor
/// facilities such as languages, diagnostics, folding, and LSP do not exist on
/// this type — those methods live on [`super::EditorState`].
pub type TextareaState = ;
/// An unstyled ordinary multi-line text input.
///
/// The retained state owns text, selection, undo, wrapping, scrolling, and the
/// native text-input interface. Enter inserts a newline by default; Tab and
/// Shift-Tab follow normal form navigation through [`crate::Root`].
///
/// Wrap this element in [`super::InputBase`] for application-owned frame styling.
/// Give the state an [`super::InputAccessibility`] with
/// [`gpui::Role::MultilineTextInput`] and a label; leave the surrounding frame's
/// role unset so the state remains the only text focus and semantic owner.