Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

TextArea dont accepts new lines in edit mode

Hi,

Maybe it's happens only with me, but, I cant add new line in TextArea using return, this just trigger blur event.
Exemple: the textArea exemple in KitchenSink happens the same.

Some one know how to resolve that or just why this could be trigged?

PS: Im using the latest version of titaniumm sdk

— asked April 2nd 2010 by Marcos Gonçalves
  • iphone
  • textarea
0 Comments

2 Answers

  • I am having this issue too and would LOVE to find the answer

    — answered December 4th 2010 by Matt Apperson
    permalink
    2 Comments
    • Matt

      There isn't much point in opening an old thread, as you won't receive any updates for it when someone suggests an answer. Also, judging from the activity in the OP's profile, it looks like he has abandoned this post, and hence is unlikely to mark it as a "best answer" if a working solution is provided.

      In these types of cases, it's best if you open a new thread. If you do so for this issue, someone will answer it for you.

      Cheers

      — commented December 4th 2010 by Paul Dowsett
    • Matt

      The answer you marked as correct in this post is wrong, at least partly.

      Certainly on android, the default behaviour is for a new line to be created when the user presses the return key. Hence, suppressReturn:false is the default. Obviously, if you want to prevent new lines, then you would need to use suppressReturn:true.

      I post this here for anyone else who needs it.

      — commented December 4th 2010 by Paul Dowsett
  • Note: This is to respond to Matt's comment, and subsequent post. Please excuse the double post.

    Matt

    The answer you marked as correct in this post is wrong, at least partly.

    Certainly on android, the default behaviour is for a new line to be created when the user presses the return key. Hence, suppressReturn:false is the default. Obviously, if you want to prevent new lines, then you would need to use suppressReturn:true.

    Please also note related bug, #2498

    I post this here for anyone else who needs it.

    — answered December 4th 2010 by Paul Dowsett
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.