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: 
joetesta
Level 10

help w PanelSet focus issue - bug?

Greetings,

As per RokuNB's suggestion I added a keyhandler node to a postergrid to successfully intercept clicks.  However using this posterGrid in a panelset and seeing a bug; after navigating to the postergrid the keyhandler is initialized and given focus, then navigating back left to the list, then back right to the posterGrid, the panelSet doesn't slide as it should until further navigation in the grid, and the first cell doesn't seem to have focus (clicking OK does nothing).

If the keyhandler isn't given focus, then all works as it should.  But after the keyhandler is given focus, it retains focus even though the panelSet focus has gone to the left list.

I've tried all kinds of things to address this bug, 
1) observing focusedchild and trying to set focus on the right panel at the right time.
2) destroying the keyhandler when its parent grid loses focus and re-creating it when it gains focus.

So far nothing works.  And I'm wondering if this is actually a bug with panelset, since the keyhandler is returning false, why does panelset care that it had focus?  Any ideas to resolve this?
tyvmia
aspiring
0 Kudos
1 Reply
joetesta
Level 10

Re: help w PanelSet focus issue - bug?

I've found a solution to the problem is to rebuild the grid contentnode and replaceChild on the m.top.panelset with the new grid.  Was a bit tricky figuring out how to retain dynamic state variables but I'm glad I figured it out!!
aspiring
0 Kudos