Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
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
Tyler_Smith
Level 7

Re: Multiple OnkeyEvent

Are you returning 'true' in the keypress function where you want to prevent the keypress from bubbling?
Tyler Smith
Senior Developer, REDspace
redspace.com
0 Kudos