# Session KeyEvents in Designer not firing

**URL:** <https://forum.inductiveautomation.com/t/session-keyevents-in-designer-not-firing/60627>\
**Category:** Ignition\
**Tags:** perspective, ignition81\
**Created:** [June 10, 2022, 5:40pm UTC](https://forum.inductiveautomation.com/t/session-keyevents-in-designer-not-firing/60627 "2022-06-10T17:40:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kgamble](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kgamble/32/8019_2.png) [@kgamble](https://forum.inductiveautomation.com/u/kgamble)\
**Post date:** [June 10, 2022, 5:40pm UTC](https://forum.inductiveautomation.com/t/session-keyevents-in-designer-not-firing/60627/1 "2022-06-10T17:40:53Z")

</div>

Potentially I am missing something here, but I can’t seem to get any of the session key events firing in the designer.

I noticed this when I was trying to send a message to a page, with the following script:

```auto
system.perspective.print("arrowRight", sessionId=page.session.props.id, pageId=page.id)
system.perspective.sendMessage("arrowRight", {}, scope="session", sessionId=page.session.props.id)

```

When I realized, that I can’t seem to get the id from the session, so I tried just printing something in the logs so I could take a deeper look at the available attrs on the `page.session` object with on the keyDown for the `.` key:

```auto
system.util.getLogger("Session").info("Hello")

```

Nothing ever shows up in the logs. Any ideas what I am missing? I am wondering if even in preview mode the designer is swallowing up any key press events and not allowing them to make their way to the embedded browser.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [June 10, 2022, 6:00pm UTC](https://forum.inductiveautomation.com/t/session-keyevents-in-designer-not-firing/60627/2 "2022-06-10T18:00:08Z")

</div>

Key Events aren’t expected to work in the designer.  
[https://docs.inductiveautomation.com/display/DOC81/Perspective+Session+Event+Scripts#PerspectiveSessionEventScripts-KeyEvents](https://docs.inductiveautomation.com/display/DOC81/Perspective+Session+Event+Scripts#PerspectiveSessionEventScripts-KeyEvents)

---

<div class="post-metadata">

**Author:** ![kgamble](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kgamble/32/8019_2.png) [@kgamble](https://forum.inductiveautomation.com/u/kgamble)\
**Post date:** [June 10, 2022, 6:03pm UTC](https://forum.inductiveautomation.com/t/session-keyevents-in-designer-not-firing/60627/3 "2022-06-10T18:03:32Z")

</div>

> [@paul-griffith](#):
>
> [Perspective Session Event Scripts - Ignition User Manual 8.1 - Ignition Documentation](https://docs.inductiveautomation.com/display/DOC81/Perspective+Session+Event+Scripts#PerspectiveSessionEventScripts-KeyEvents)

Note taken! I did not see that line.

Would likely be nice if there was a small snippet about that in the description here, to avoid any confusion for other developers in the future.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/c/5ca1a3219b9f3f5e7d978e0e702d6cb225895c08.png)

Even just taking the

> Scripts that execute in the Session on a specific keystroke.

and extending it to

> Scripts that execute in the Session on a specific keystroke. Key event detection is only active inside of a Perspective session and is not active inside of the Designer.

Would be nice!
