Skip to main content

Module text_input

Module text_input 

Source
Expand description

The text entry field used everywhere. Single-line inputs submit on Enter and recall history with arrows; multi-line ones insert newlines and recall with Ctrl-P/Ctrl-N; statements submit on Enter, break lines on Alt+Enter and wrap. Editing belongs to crate::widgets::textarea::TextArea; this adds theming, focus and history.

Modules§

history
Recall of submitted values for super::TextInput. Each history’s id names its cache file (query, SQL and fuzzy keep separate lists); loaded lazily on first use. Reads and writes go through CacheManager under a lock across read-modify-write, so concurrent instances merge.

Structs§

TextInput
A themed, optionally history-backed text field.

Enums§

TextInputEvent
What a key press did to the input, for the caller to act on.
TextInputMode
Whether the field holds one line or many.