2 Replies Latest reply on Jul 20, 2007 5:03 AM by ZClaes

    TextArea: Preventing focus loss on Tab-Key press?

    ZClaes Level 1
      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.

      Ew (to say the least).

      Anybody know a better solution?