Text COMP python: text selection and cursor manipulation methods

Hi guys,
Would be great to add python methods to TextCOMP class:

setTextSelection(startIndex, endIndex)
selectAllText()
setCursorPos(index)
getCursorPos() → index

Would be great if it works during text editing, unlike the current setCursorPosUV(u, v)

An illustrative example of where this is useful - Chrome’s address bar:

Cheers,
Alex

1 Like