Skip to content

TextSelectionChangeEvent

Inherits: Event[EventControlType]

An event emitted when the text selection changes.

Properties

Properties#

cause class-attribute instance-attribute #

cause: TextSelectionChangeCause | None = None

The cause of the selection change.

selected_text instance-attribute #

selected_text: str

The selected text.

selection instance-attribute #

selection: TextSelection

The new text selection.