# Get caret position from text input

**URL:** <https://forum.inductiveautomation.com/t/get-caret-position-from-text-input/55786>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [February 5, 2022, 12:21am UTC](https://forum.inductiveautomation.com/t/get-caret-position-from-text-input/55786 "2022-02-05T00:21:52Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![stefan.marcin74](https://avatars.discourse-cdn.com/v4/letter/s/57b2e6/32.png) [@stefan.marcin74](https://forum.inductiveautomation.com/u/stefan.marcin74)\
**Post date:** [February 6, 2022, 11:03am UTC](https://forum.inductiveautomation.com/t/get-caret-position-from-text-input/55786/4 "2022-02-06T11:03:28Z")

</div>

Hi, thanks, but I checked that we are using Perspective not Vision.  
I am trying to call it at Text Input. We built alphanumeric keyboard as a component so we dont use the tablet mode keyboard on touchscreen. So I dont know if its possible but it would be great work it like that, Text input is focused - touch of the button (lets say key A) and it checks caretp position and adds a key. I am afraid that when I touch the button, the focus is lost from Text input so the caret position would not work, am I wrong ? Or it is saving its position somewhere or I should use the approach you have given with saved caret position as custom property

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/d/7d470f742b568403bde6674dadd0970a45f04a7c.png)

---

_[View the full topic](https://forum.inductiveautomation.com/t/get-caret-position-from-text-input/55786)._
