2 Replies Latest reply on Mar 25, 2009 12:17 PM by spies_like_us

    setFocus() and newlines


      When I explicitly set teh focus to a TextArea, it winds up putting an extra newline in that TextArea. This makes me sad because the TextArea has variable height and makes the user have to delete a line to get to the top. Anybody have this problem?

      I triied to just set the contents to null to get rid of it, but that doesn't seem to work.. maybe I could send a delete key event right after setting focus?

      Any help appreciated.

      Here's my code: