joetesta
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2017
07:18 AM
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
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
1 REPLY 1
joetesta
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2017
08:48 AM
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