iptvmag
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2016
12:48 AM
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?
1 REPLY 1
joetesta
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2016
08:30 PM
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.
https://sdkdocs.roku.com/pages/viewpage.action?pageId=1608547
https://sdkdocs.roku.com/pages/viewpage.action?pageId=1608547
aspiring