Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Level 7

Create a new scene onkeyevent

Hello i am trying to create a scene graph screen on key event but i am getting an error. How in theory we could do such a job?
0 Kudos
1 REPLY 1\
Level 11

Re: Create a new scene onkeyevent

Key event handling is easy to set up in XML by including an onKeyEvent() function in the <script> element. When the XML component or its children have the key focus, the onKeyEvent() function will be called whenever an unhandled key event bubbles up the focus chain to the XML component.
0 Kudos