Skip to main content

TextSelectionChangeEvent

An event emitted when the text selection changes.

Inherits: Event

Properties

Properties​

causeclass-attributeinstance-attribute​

cause: TextSelectionChangeCause | None = None

The cause of the selection change.

selected_textinstance-attribute​

selected_text: str

The selected text.

selectioninstance-attribute​

selection: TextSelection

The new text selection.