Expand description
Keyboard/IME editing engine shared by TextInput and Editor.
Text editing engine: caret, selection, IME, undo/redo, clipboard.
Shared by TextInput and Editor widgets. Operates on a TextBuffer via
TextEditState and keymap translation (TextKeymap).
Structs§
- Text
Edit Outcome - Side effects after applying an edit action.
- Text
Edit State - Mutable edit session: caret, selection, IME preedit, scroll, undo stacks.
- Text
Keymap - Maps [
KeyEvent] toTextEditActionfor a given input mode and platform. - Text
Selection - Caret and optional selection anchor (UTF-8 byte indices).
Enums§
- Platform
Keymap - Platform-specific primary modifier (Ctrl vs Cmd).
- Text
Edit Action - Editing command applied to a buffer through
TextEditState. - Text
Input Mode - Single-line vs multi-line editing behavior.
- Text
Movement - Caret movement direction for keyboard navigation.
Functions§
- clamp_
boundary - Clamps a byte index backward to a valid UTF-8 boundary in
text.