Instruction set reference
For an input element, gets the current position of the input cursor, or the start and end of the selection if text is selected.
The display server responds with a HIPE_OP_CARAT_POSITION instruction.
- location: The input element for which you require the current input position/selection range
This instruction is for input elements and doesn't work with ordinary user-selected content (such as when the user selects a non-editable part of the document to copy to clipboard).