I am learning SceneGraph and I am working with the SimpleGridWithVideoAndDetails sample. I have been able to successfully make some changes to the sample. I have read the documentation about the OnKeyEvent and the information is limited.
I have changed the app to play a stream at launch. When the app loads, my video player plays the content as expected but when I press the back key the app closes and I don't get any error messages and I can see that the OnKeyEvent is not being called. :? I recently moved some things to my Main.brs, including the OnKeyEvent function, because I was having some issues referencing a node in HomeScene from Main.
:?:Can the OnKeyEvent function be in any of the brs files, if not what are the restrictions about where it can be?
:?:Must there only be one OnKeyEvent or can you have multiple ?
:?:Is it required to set the OnKeyEvent or is it implicit?
:?:Is there any other information that I might be missing about OnKeyEvent?
Thank you very much for taking the time to read this. Any information, not mater how small, will be greatly appreciated. 🙂 🙂