# Client event script (keystroke) doesn´t run on screen2 (multiple monitors)

**URL:** <https://forum.inductiveautomation.com/t/client-event-script-keystroke-doesn-t-run-on-screen2-multiple-monitors/16733>\
**Category:** Ignition\
**Created:** [January 25, 2018, 2:12pm UTC](https://forum.inductiveautomation.com/t/client-event-script-keystroke-doesn-t-run-on-screen2-multiple-monitors/16733 "2018-01-25T14:12:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lmis](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lmis/32/4563_2.png) [@lmis](https://forum.inductiveautomation.com/u/lmis)\
**Post date:** [January 25, 2018, 2:12pm UTC](https://forum.inductiveautomation.com/t/client-event-script-keystroke-doesn-t-run-on-screen2-multiple-monitors/16733/1 "2018-01-25T14:12:20Z")

</div>

Hi,

I have a project running on dual monitors. (open with system.gui.openDesktop(…)  
In my project I have a Client Event script, Keystroke Script. (that´s muting my Alarm Sound)

Everything works fine when the primary screen is “in focus”, but when the project on screen2 is marked/in focus the keystroke script won´t be executed.  
Any ideas why?

Regards, Michael

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 25, 2018, 2:15pm UTC](https://forum.inductiveautomation.com/t/client-event-script-keystroke-doesn-t-run-on-screen2-multiple-monitors/16733/2 "2018-01-25T14:15:58Z")

</div>

Sounds like a bug. A second desktop window uses its own set of ancestor listeners to catch global keystrokes, and the client event keystroke listeners would have to be added when the second desktop opens.

---

<div class="post-metadata">

**Author:** ![MMaynard](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmaynard/32/3366_2.png) [@MMaynard](https://forum.inductiveautomation.com/u/MMaynard)\
**Post date:** [June 5, 2018, 9:38pm UTC](https://forum.inductiveautomation.com/t/client-event-script-keystroke-doesn-t-run-on-screen2-multiple-monitors/16733/3 "2018-06-05T21:38:32Z")

</div>

I can confirm this is not working, has this been addressed by Inductive?

---

<div class="post-metadata">

**Author:** ![lmis](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lmis/32/4563_2.png) [@lmis](https://forum.inductiveautomation.com/u/lmis)\
**Post date:** [June 20, 2018, 12:29pm UTC](https://forum.inductiveautomation.com/t/client-event-script-keystroke-doesn-t-run-on-screen2-multiple-monitors/16733/4 "2018-06-20T12:29:14Z")

</div>

It´s has been confirmed by Inductive as a bug. I reported this in February, and the status of this ticket is now; In Progress.

The answer from support:  
_This is actually an existing bug. Unfortunately I don’t have a workaround for you at this point, but I can keep you updated on the ticket’s progress._

---

<div class="post-metadata">

**Author:** ![bfuson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bfuson/32/4597_2.png) [@bfuson](https://forum.inductiveautomation.com/u/bfuson)\
**Post date:** [August 5, 2019, 5:02pm UTC](https://forum.inductiveautomation.com/t/client-event-script-keystroke-doesn-t-run-on-screen2-multiple-monitors/16733/5 "2019-08-05T17:02:45Z")

</div>

I’m still experiencing this issue on 7.9.11  
Any advice on how to manually copy these event listeners to the child displays?
