Forum Discussion
Any Solution for this issue.
- necrotek6 years agoRoku Guru
if you are handling keypress in
onKeyEvent()
then press should be boolean
https://developer.roku.com/en-gb/docs/references/scenegraph/component-functions/onkeyevent.md
returning true or false will determine if your parent will also catch the onKeyEvent()
- chaklasiyanikun6 years agoRoku Guru
necrotek wrote:if you are handling keypress in
onKeyEvent()
then press should be boolean
https://developer.roku.com/en-gb/docs/references/scenegraph/component-functions/onkeyevent.md
returning true or false will determine if your parent will also catch the onKeyEvent()
I know that the onKeyEvent() returning true or false And I also know the parent will also catch the onKeyEvent(). But, I not facing this problem with RSG Component. this problem only Facing with the SGDex View. I tried to catch onKeyEvent() value in Parent. But, Here, I found <uninitialized> press value. I transferred the key both ways. Using a return false in the child node and Without value set Automatic transferred. But, Both the way I getting the <uninitialized> press value. I don't know how to handle it <uninitialized> value in Roku.