# Non-editable input editable when using touchscreen - bug?

**URL:** <https://forum.inductiveautomation.com/t/non-editable-input-editable-when-using-touchscreen-bug/1226>\
**Category:** Archived Topics\
**Created:** [July 22, 2009, 8:35pm UTC](https://forum.inductiveautomation.com/t/non-editable-input-editable-when-using-touchscreen-bug/1226 "2009-07-22T20:35:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eaolson](https://avatars.discourse-cdn.com/v4/letter/e/f07891/32.png) [@eaolson](https://forum.inductiveautomation.com/u/eaolson)\
**Post date:** [July 22, 2009, 8:35pm UTC](https://forum.inductiveautomation.com/t/non-editable-input-editable-when-using-touchscreen-bug/1226/1 "2009-07-22T20:35:22Z")

</div>

I have a numeric text field, which is enabled, but not editable. (I didn’t want to disable it, because that greys it out and makes the text a bit more difficult to read.) When I’m in preview mode, I can put the cursor in the field, but I can’t edit it. It’s read only. When I’m in touchscreen mode and I put the cursor in the field, the touchscreen keyboard pops up and I can edit the field. That doesn’t seem right to me. Is it the intended behavior.

I can probably work around this by replacing my component with a numeric label, but thought I’d report it anyway.

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [July 22, 2009, 8:44pm UTC](https://forum.inductiveautomation.com/t/non-editable-input-editable-when-using-touchscreen-bug/1226/2 "2009-07-22T20:44:32Z")

</div>

Yeah, you’re right, that isn’t correct. We’ll get it fixed, but in the meantime the workaround is simple:

Set the field’s “Touchscreen Mode” (expert property) to “None”, and then add the touchscreen logic yourself to the field’s mousePressed event with something like this:

`if fpmi.gui.isTouchscreenModeEnabled() and event.source.isEditable():
	event.source.intValue = fpmi.gui.showNumericKeypad(event.source.intValue)
`
