I can get the actual position of the cursor in an input field. How can I get the whole word on this position. For example my input has the following text: Hello World, and the cursor is at position 2. How could I get Hello?
I can get the actual position of the cursor in an input field. How
Share
Came up with small piece. I split the string at the cursor position and get the last chars from the first substring and the first of the second one.