TextBuffer.getHasSelection

bool getHasSelection()

Indicates whether the buffer has some text currently selected.

Returns

true if the there is text selected