Skip to main content

TextSelectionChangeEvent

An event emitted when the text selection changes.

Inherits: Event

Properties

Properties

causeclass-attributeinstance-attribute

cause: Optional[TextSelectionChangeCause] = None

The cause of the selection change.

selected_textinstance-attribute

selected_text: str

The selected text.

selectioninstance-attribute

selection: TextSelection

The new text selection.