klyn.gui.windows.TextBox.hasSelection
method
public hasSelection() as Boolean:
Description

Returns true when a selection is active.

print(field.hasSelection())