I might try: restirct="^" + String.fromCharCode(13); Then I might try subclassing and setting multiline=false in the internal textField. Finally, I would try capturing the textInput event on the internal textField and calling preventDefault() on it. Then, submit a mini-example and we'll dig deeper. -Alex
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of dmiramontesval Sent: Friday, March 02, 2007 2:39 PM To: [email protected] Subject: [flexcomponents] Re: Disabling \n in a TextArea Yep i tried like this restrict="^\n" and also like this: restrict="^\\n" And neither worked :( --- In [email protected] <mailto:flexcomponents%40yahoogroups.com> , "Gordon Smith" <[EMAIL PROTECTED]> wrote: > > Did you try the 'restrict' property? > > - Gordon > > ________________________________ > > From: [email protected] <mailto:flexcomponents%40yahoogroups.com> > [mailto:[email protected] <mailto:flexcomponents%40yahoogroups.com> ] On Behalf Of dmiramontesval > Sent: Friday, March 02, 2007 11:42 AM > To: [email protected] <mailto:flexcomponents%40yahoogroups.com> > Subject: [flexcomponents] Disabling \n in a TextArea > > > > I am trying to restrict a TextArea control so users can't enter \n > sequence, that is when they press the Enter key the TextArea shouldn't > enter the \n (new line). > > Any ideas on this? >
