Selection.isEmpty

Returns true if the selection is currently empty. An empty selection still has a position - where the cursor is drawn - but has no text inside it.

struct Selection
bool
isEmpty
()

See Also

Meta