Get cursor infos in a text input