# Make "Enter" key function like "Tab" key

**URL:** <https://forum.inductiveautomation.com/t/make-enter-key-function-like-tab-key/8666>\
**Category:** Ignition\
**Created:** [July 3, 2014, 7:52pm UTC](https://forum.inductiveautomation.com/t/make-enter-key-function-like-tab-key/8666 "2014-07-03T19:52:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tbackus](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tbackus/32/5091_2.png) [@tbackus](https://forum.inductiveautomation.com/u/tbackus)\
**Post date:** [July 3, 2014, 7:52pm UTC](https://forum.inductiveautomation.com/t/make-enter-key-function-like-tab-key/8666/1 "2014-07-03T19:52:59Z")

</div>

I have a screen where the user must enter data into several Numeric Text Fields… I have grouped them so that when you use the “Tab” key they go from field 1 to field 2 to field 3 to field 4, etc…

Well the end user wants to be able to enter date into field 1 then hit “Enter” instead of “Tab” to go to field 2, etc.

Is this possible??

---

<div class="post-metadata">

**Author:** ![jpark](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@jpark](https://forum.inductiveautomation.com/u/jpark)\
**Post date:** [July 3, 2014, 8:26pm UTC](https://forum.inductiveautomation.com/t/make-enter-key-function-like-tab-key/8666/2 "2014-07-03T20:26:09Z")

</div>

On the propertyChange event of each numeric textbox, add:

`if event.propertyName == "value":
	event.source.parent.getComponent('Next Numeric Text Field').requestFocusInWindow()`

---

<div class="post-metadata">

**Author:** ![greg.simpson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/greg.simpson/32/3135_2.png) [@greg.simpson](https://forum.inductiveautomation.com/u/greg.simpson)\
**Post date:** [July 7, 2014, 4:24pm UTC](https://forum.inductiveautomation.com/t/make-enter-key-function-like-tab-key/8666/3 "2014-07-07T16:24:31Z")

</div>

You may want to do something like this if you want to go to the next field by pressing the Enter key

`if event.keyCode == event.VK_ENTER:
    event.source.parent.getComponent('Next Numeric Text Field').requestFocusInWindow()`

---

<div class="post-metadata">

**Author:** ![joseut76](https://avatars.discourse-cdn.com/v4/letter/j/cab0a1/32.png) [@joseut76](https://forum.inductiveautomation.com/u/joseut76)\
**Post date:** [July 14, 2017, 9:31pm UTC](https://forum.inductiveautomation.com/t/make-enter-key-function-like-tab-key/8666/4 "2017-07-14T21:31:47Z")

</div>

Hi,

I am trying to achieve the same results but with the “Sample Entry” component from Sepasoft. My serial instrument sends the “Enter” key to move to the next field, but the Sample Entry uses Tab, and I do not see a way to change it to use the Enter key, neither I can refer to the fields since they are created dynamically.

Any idea of how can I approach this?

Thanks

---

<div class="post-metadata">

**Author:** ![greg.simpson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/greg.simpson/32/3135_2.png) [@greg.simpson](https://forum.inductiveautomation.com/u/greg.simpson)\
**Post date:** [July 14, 2017, 9:50pm UTC](https://forum.inductiveautomation.com/t/make-enter-key-function-like-tab-key/8666/5 "2017-07-14T21:50:55Z")

</div>

I would recommend contacting SepaSoft Support. But if their component has multiple input fields, it may be something that needs a feature request, with SepaSoft.

---

<div class="post-metadata">

**Author:** ![mark.french](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mark.french/32/4781_2.png) [@mark.french](https://forum.inductiveautomation.com/u/mark.french)\
**Post date:** [July 17, 2017, 8:52pm UTC](https://forum.inductiveautomation.com/t/make-enter-key-function-like-tab-key/8666/6 "2017-07-17T20:52:38Z")

</div>

Hi joseut76,

If you haven’t checked already, feel free to check out the [Sample Entry Component section in the online help docs here](https://help.sepasoft.com/docs/display/MHD/Sample+Entry).

If you’re still having issues, emailing [Support@Sepasoft.com](mailto:Support@Sepasoft.com) is the preferred way to reach us. We’re happy to take a look at the specifics with you.

Thanks,  
Mark
