# \[Feature-615\] onKeyPress event doesn't work in root container

**URL:** <https://forum.inductiveautomation.com/t/feature-615-onkeypress-event-doesnt-work-in-root-container/45606>\
**Category:** Ignition Early Access\
**Tags:** perspective\
**Created:** [April 14, 2021, 6:55pm UTC](https://forum.inductiveautomation.com/t/feature-615-onkeypress-event-doesnt-work-in-root-container/45606 "2021-04-14T18:55:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![nader.chinichian](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nader.chinichian/32/9261_2.png) [@nader.chinichian](https://forum.inductiveautomation.com/u/nader.chinichian)\
**Post date:** [April 14, 2021, 6:55pm UTC](https://forum.inductiveautomation.com/t/feature-615-onkeypress-event-doesnt-work-in-root-container/45606/1 "2021-04-14T18:55:25Z")

</div>

Hi,  
The onKeyPress event doesn’t work in the root container of the view. What I really want is some global keypress event for the open page. I mean, I want to get a keypress event even I don’t focus on the component.

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [April 14, 2021, 7:00pm UTC](https://forum.inductiveautomation.com/t/feature-615-onkeypress-event-doesnt-work-in-root-container/45606/2 "2021-04-14T19:00:19Z")

</div>

We actually have a feature in development to provide this. Likely for 8.1.6.

---

<div class="post-metadata">

**Author:** ![nader.chinichian](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nader.chinichian/32/9261_2.png) [@nader.chinichian](https://forum.inductiveautomation.com/u/nader.chinichian)\
**Post date:** [April 14, 2021, 7:53pm UTC](https://forum.inductiveautomation.com/t/feature-615-onkeypress-event-doesnt-work-in-root-container/45606/3 "2021-04-14T19:53:17Z")

</div>

Is it also possible for you to add browser zoom in and out as an event too?  
or ctrl + muse scroll event?  
I ask this because if I can get those event by using css3 zoom property on root container I can simply create cluttering decluttering effect.  
Of course having new containeer that act like map compoenent is much better but this is better than nothing for now.  
 ![d0959248bd67ce1e048b5f91bae33d4d1c134a9c_2_690x456](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/9/697a7dbb943851c75d9a911f16756da7a64ecb65.gif)

> [@Trick to cluttering in Perspective](http://forum.inductiveautomation.com/t/trick-to-cluttering-in-perspective/35271):
>
> Hi, I’d like to share a trick to implement some sort of simple cluttering effect in Perspective. As it shown in above the root container of your view should has a zoom property under style. The value of this property can be adjust by a slider from 1(100%) to 0.6(60%). This cause every things only in this view zoom in/out.(Not whole page like browser zoom) As we know the current user zoom level now, we can simply use it as condition of visibility of any object in the view. if(…

---

<div class="post-metadata">

**Author:** ![scott.key](https://avatars.discourse-cdn.com/v4/letter/s/e480ec/32.png) [@scott.key](https://forum.inductiveautomation.com/u/scott.key)\
**Post date:** [May 26, 2021, 4:57pm UTC](https://forum.inductiveautomation.com/t/feature-615-onkeypress-event-doesnt-work-in-root-container/45606/4 "2021-05-26T16:57:08Z")

</div>

has this been released as part of 8.1.6? I’m trying to setup a numeric input, the touch screen version works well, but I would like to implement keyboard/numpad inputs as well.

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [May 26, 2021, 5:06pm UTC](https://forum.inductiveautomation.com/t/feature-615-onkeypress-event-doesnt-work-in-root-container/45606/5 "2021-05-26T17:06:35Z")

</div>

No, it’s currently going through the Dev/QA process and is most likely to be included as part of ~~8.1.8~~.

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [June 24, 2021, 9:00pm UTC](https://forum.inductiveautomation.com/t/feature-615-onkeypress-event-doesnt-work-in-root-container/45606/6 "2021-06-24T21:00:10Z")

</div>

While we have an excellent handle on implementation for desktop users, we’ve discovered that the current implementation will only allow for a select sub-set of scanners (HID) to utilize Key Events as is intended, so we’re delaying this until we can research an implementation which allow for a wider range of devices to work as intended. We now expect 8.1.9 at the earliest.

---

<div class="post-metadata">

**Author:** ![nader.chinichian](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nader.chinichian/32/9261_2.png) [@nader.chinichian](https://forum.inductiveautomation.com/u/nader.chinichian)\
**Post date:** [June 25, 2021, 7:51am UTC](https://forum.inductiveautomation.com/t/feature-615-onkeypress-event-doesnt-work-in-root-container/45606/7 "2021-06-25T07:51:51Z")

</div>

It is nice to have it even it is not working with all HID until it fully working. May be we can help to find other bugs as well.
