ClearEditState

Forms, interaction, edit history

Description

Internal helper of TPDFlibFormSession that returns the session to the no-edit state

It resets the editing field index, the original and transient values, the selection start, length, anchor and caret and the complete edit history

The cached code point and grapheme boundary tables are invalidated together with the visual caret order, and Modified is cleared

The helper runs from Reset, from a successful CommitEdit and from CancelEdit

Declaration

procedure ClearEditState;

See also

CancelEdit, CommitEdit, ClearEditHistory, InvalidateSelectionBoundaries, InvalidateVisualCaretOrder, EditingFieldIndex, EditValue, TPDFlibFormSession