I’ve a TextArea that I want to use for code input (xml). How do I allow for entering tabs (pressing tab moves focus to nect control)?
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.
The only way I’ve found to do this is the extend TextArea and catch it’s keyFocusChange event, then stop the event and insert the tab. Here is an example:
You can also break the MyTextArea out into a separate class file. But I put it all in one file because it’s easier to test.