Prose.CaretDeparture
ReferencesThe ways a key press can ask to leave a single-line text context: a plain movement or deletion which cannot be absorbed because the caret already sits at the boundary it points past, or a vertical step which a single line can never absorb. Whoever hosts the text decides whether a neighbouring context exists and what landing there means.
Enum values
| Name | Value | Description |
|---|---|---|
| None | 0 | The key press does its work inside the current context. |
| Prev | 1 | Left at the start: land at the end of the previous context. |
| Next | 2 | Right at the end: land at the start of the next context. |
| Above | 3 | Up: land at the same horizontal position in the context above. |
| Below | 4 | Down: land at the same horizontal position in the context below. |
| PrevDelete | 5 | Backspace at the start: like Prev, but with destructive intent. |
| NextDelete | 6 | Delete at the end: like Next, but with destructive intent. |