# Default Button Event: Press Enter

**URL:** <https://forum.inductiveautomation.com/t/default-button-event-press-enter/76500>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [July 18, 2023, 1:18am UTC](https://forum.inductiveautomation.com/t/default-button-event-press-enter/76500 "2023-07-18T01:18:21Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![mdemaris](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mdemaris/32/54639_2.png) [@mdemaris](https://forum.inductiveautomation.com/u/mdemaris)\
**Post date:** [November 16, 2023, 10:18pm UTC](https://forum.inductiveautomation.com/t/default-button-event-press-enter/76500/8 "2023-11-16T22:18:04Z")

</div>

Well, these are available for Session:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/d/eddc485f889af879a05425925d9090aa6645af40.png)

But I see what you're saying about multiple tabs, which is why I asked this question here: [Prevent Multiple Tabs](https://forum.inductiveautomation.com/t/how-do-i-prevent-multiple-pages-with-the-same-url/80560)

(I haven't worked on the tab issue since the last post, as there were other things to deal with.)

The issue I have with the Enter key is that I have to press it twice to get the "action" to work if I input values into the numeric input fields. If I use the text input boxes, I only need to press Enter once.

> [@victordcq](#):
>
> a website would also just listen to any press on the bigest wrapper.

In this case, the biggest wrapper is the root, and that is where the `onKeyDown` event resides.

A colleague asked about a higher level function/listener, i.e. Project/Session, that might be able to solve this, which is why I asked.

---

_[View the full topic](https://forum.inductiveautomation.com/t/default-button-event-press-enter/76500)._
