Get caret position

Viewed 13

Is it possible to get the caret position in pixels relative to the window. I need to get the caret position by space or by pressing the arrows. The thought arises whether it is possible to simulate a mouse click (since a mouse click has properties of the click coordinate) by pressing a space (that is, in a text field by pressing the space, the position of the caret changes), any ideas? This is necessary in order to position the block with a hint near the entered word. I managed to do this only by clicking the mouse, since I can get its coordinates

0 Answers
Related