PDA

View Full Version : how to tab inside a text field? (not tab to a different text field)


springframework
03-03-2007, 03:54 AM
How would i make pressing tab when your inside a text field actually tab the text ... make a large space.

Pleh
03-04-2007, 07:06 PM
this isnt as easy as it should be, but you can listen for the key press event then insert a tab character at the text boxes current position

sa6k0o0
08-03-2007, 06:07 PM
so there is no easy way to do this ....

dr_zeus
08-03-2007, 06:14 PM
In addition to Pleh's explanation of using the keyboard event, you may also need to listen for the focusOut event to cancel it.

Hickeroar
08-15-2007, 03:25 PM
I ran across this thread while looking for a way to do this. I couldn't find an actual tutorial anywhere on how to set it up, so just in case someone runs across this again and can't figure it out, I wrote up a tutorial for exactly how it can be done. I looked for a couple days (on and off) for a way to just DO it, but there doesn't appear to be a truly "easy" answer. Luckily, doing it the "hard way" doesn't prove too terribly difficult once you figure out the quirks.

Here's a link to the tutorial:
http://launchcms.com/ria-and-flex/how-to-enable-tab-key-in-flex-flash-textarea/