How can I shift focus from one component to another component when I (program) experience’s’ a certain case ? Like the focus shifts to the next text-field when in the first text field the word length reaches 3.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Subscribe to
keyDownevent on 1st component.if
text length == 3shift focus to another component. don’t forget to undo the effect of current key downI guess
focus()ORrequestFocusInWindow()method can be used. don’t remember exact name.Similarly,
TextChangedevent can be subscribed. so, ASA 3 chars are added, shift the focus using step 3.