Hardik
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2018
12:40 AM
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
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
2 REPLIES 2
acreskey
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2018
12:41 PM
Re: Not getting OnKeyEvent in Component Library
Possibly the component doesn't have focus?
kisuke
Binge Watcher
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2020
12:40 PM
Re: Not getting OnKeyEvent in Component Library
Hi. I have exactly the same problem. I assume you should add the focus to the ComponentLibrary. How did you do it?