Returns the current cursor position inside edit box

Signature:

position = EditBox:GetCursorPosition()

Returns:

  • position - Current position of the keyboard input cursor (between 0, for the position before the first character, and editbox:GetNumLetters(), for the position after the last character) (number)