Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Multiple OnkeyEvent

Hello,

I have an issue similar to this:

https://forums.roku.com/viewtopic.php?f ... db94f7a380

He received a response from a board administrator that didn't make much sense. I currently have multiple onKeyEvents but the focus seems to be not in sync when switching screens. The focus would stay only on the first screen and any other screens after that would not receive the focus (even when I set focus).

 So the question comes: Is it possible to have multiple onKeyEvents that switch in and out of focus? If so, how do I just have only one onKeyEvent fire at a time?

Thanks in advance.
0 Kudos
1 REPLY 1
Tyler_Smith
Streaming Star

Re: Multiple OnkeyEvent

Are you returning 'true' in the keypress function where you want to prevent the keypress from bubbling?
Tyler Smith
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.