I've been having a lot of trouble with this :( I've tried a
variety of methods, and ultimately I ended up finding something
that works, but not well. Basically, I keep track of the last key
pressed, and handle the focusOut event on the TextArea. If the key
pressed was a tab key, it re-sets the focus, manually inserts a \t
character, and sets the selection to the appropriate location.