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: 

How can i move focus from one texteditbox to another texteditbox?

I want to move focus from one username to password or vice versa.Is there any predefined focus option or I need to true and false focus on key event.
 it 
https://drive.google.com/file/d/0B42scj ... sp=sharing
0 Kudos
1 REPLY 1
EnTerr
Roku Guru

Re: How can i move focus from one texteditbox to another texteditbox?

Not sure i quite understand the question but - at any one time only 1 component can have the input focus (often simply "focus") in a scene. Now, if that component does not handle the input event (by having onKeyEvent() return `true`), it will "bubble up" the component tree till a node handles it explicitly or by default behavior. To this, a single `.setFocus(true)` on a node takes the focus away from the previous holder - in a way it's like passing the baton in a relay race.
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.