Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
georgejecook
Streaming Star

prevent rowlist from wrapping on press key left, or intercept key presses.

Hi, I want the feature of a rowlist where by the focus is fixed; but I want the left keypress on item zero to move focus OUT of the rowlist to the search box control

I can't find a way todo this, as the rowlist captures all the control events - 
I've subclassed the rowlist; but overrding the key handling code, works; but then causes the list to scroll uncontrollably

any one got any ideas?
George Cook
https://georgejecook.github.io/
https://linkedin.com/in/georgejecook/
Roku developers slack group (https://join.slack.com/t/rokudevelopers/shared_invite/zt-4vw7rg6v-NH46oY7hTktpRIBM_zGvwA) : georgejecook

Contact me on roku developer slack group, or via pm to discuss consultancy/work opportunities/rooibos unit testing framework
0 Kudos
4 REPLIES 4
joetesta
Roku Guru

Re: prevent rowlist from wrapping on press key left, or intercept key presses.

put an onKeyHandler in the parent (of the rowlist) component.
I forget offhand if it will receive press = true or false in this case, but you can handle it by detecting the rowlist focus position (rowItemFocused) and if it's zero, do what you want.
aspiring
0 Kudos
georgejecook
Streaming Star

Re: prevent rowlist from wrapping on press key left, or intercept key presses.

that don't work - it swallows it up - I never see it. rowlist also doesn't correctly handle focus events either..

I extended the rowlist too; but to no avail - I can intercept the relevant keypress; and change focus; but then the rowlist starts scrolling on it's own accord. It's most irksome.

thanks for your help though 😉
George Cook
https://georgejecook.github.io/
https://linkedin.com/in/georgejecook/
Roku developers slack group (https://join.slack.com/t/rokudevelopers/shared_invite/zt-4vw7rg6v-NH46oY7hTktpRIBM_zGvwA) : georgejecook

Contact me on roku developer slack group, or via pm to discuss consultancy/work opportunities/rooibos unit testing framework
0 Kudos
joetesta
Roku Guru

Re: prevent rowlist from wrapping on press key left, or intercept key presses.

if it's not in scrolling mode I believe the keypress bubbles up to the parent component, but it's been a while.  At my prior job we created custom replacements for Rowlist to get it to do what we needed; that was a multi-week effort.
aspiring
0 Kudos
georgejecook
Streaming Star

Re: prevent rowlist from wrapping on press key left, or intercept key presses.

that's what I figured - thanks for chipping in.

I might push to deprioritize that feature.
George Cook
https://georgejecook.github.io/
https://linkedin.com/in/georgejecook/
Roku developers slack group (https://join.slack.com/t/rokudevelopers/shared_invite/zt-4vw7rg6v-NH46oY7hTktpRIBM_zGvwA) : georgejecook

Contact me on roku developer slack group, or via pm to discuss consultancy/work opportunities/rooibos unit testing framework
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.