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: 
Hardik
Level 7

Not getting OnKeyEvent in Component Library

Hello All,

I am trying to create ComponentLibrary for ROKU.
https://sdkdocs.roku.com/display/sdkdoc/ComponentLibrary

I have followed sample and able to run sample app.
Now I am trying to add onKeyEvent in library.
---
Function onKeyEvent(key as String, press as Boolean) as Boolean
---

But when I press key, I am not receiving anything.
Can you please help as I am stuck, how we will get onKeyEvent in component library.

Thanks,
Hardik
0 Kudos
1 Reply
acreskey
Level 7

Re: Not getting OnKeyEvent in Component Library

Possibly the component doesn't have focus?
0 Kudos