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:
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:
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.