Module textinput

Source
Expand description

Common handling of keyboard input and state management for text input controls

Structsยง

ClipboardEventReaction
Resulting action to be taken by the owner of a text input that is handling a clipboard event.
SelectionState ๐Ÿ”’
TextInput
Encapsulated state for handling keyboard input in a single or multiline text input control.
TextPoint
UTF8Bytes
UTF16CodeUnits

Enumsยง

Direction
The direction in which to delete a character.
KeyReaction
Resulting action to be taken by the owner of a text input that is handling an event.
Lines
Control whether this control should allow multiple lines.
Selection
SelectionDirection

Constantsยง

CMD_OR_CONTROL ๐Ÿ”’

Traitsยง

StrExt ๐Ÿ”’

Functionsยง

len_of_first_n_chars ๐Ÿ”’
The length in bytes of the first n characters in a UTF-8 string.
len_of_first_n_code_units ๐Ÿ”’
The length in bytes of the first n code units in a string when encoded in UTF-16.