<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Preventing line feeds in a TextArea control in Flex</title>
	<atom:link href="http://blog.flexexamples.com/2008/03/07/preventing-line-feeds-in-a-textarea-control-in-flex/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2008/03/07/preventing-line-feeds-in-a-textarea-control-in-flex/</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Sat, 11 Feb 2012 11:51:51 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Grahf</title>
		<link>http://blog.flexexamples.com/2008/03/07/preventing-line-feeds-in-a-textarea-control-in-flex/comment-page-1/#comment-9119</link>
		<dc:creator>Grahf</dc:creator>
		<pubDate>Fri, 08 Apr 2011 21:50:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/03/07/preventing-line-feeds-in-a-textarea-control-in-flex/#comment-9119</guid>
		<description>Here is how you do this in a spark TextArea:

&lt;code&gt;
private function onChangingHandler(event:TextOperationEvent):void { 
   if(event.operation is SplitParagraphOperation)
      event.preventDefault();             
}
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Here is how you do this in a spark TextArea:</p>
<p><code><br />
private function onChangingHandler(event:TextOperationEvent):void {<br />
   if(event.operation is SplitParagraphOperation)<br />
      event.preventDefault();<br />
}<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: online multiplayer trivia</title>
		<link>http://blog.flexexamples.com/2008/03/07/preventing-line-feeds-in-a-textarea-control-in-flex/comment-page-1/#comment-8220</link>
		<dc:creator>online multiplayer trivia</dc:creator>
		<pubDate>Sat, 14 Aug 2010 07:08:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/03/07/preventing-line-feeds-in-a-textarea-control-in-flex/#comment-8220</guid>
		<description>Is this the only way? Isn&#039;t there any elegant way of doing this? I&#039;m trying to make a chat window just like YM or Skype has, do you know if there is some source code on that? Uncle G is silent about it...</description>
		<content:encoded><![CDATA[<p>Is this the only way? Isn&#8217;t there any elegant way of doing this? I&#8217;m trying to make a chat window just like YM or Skype has, do you know if there is some source code on that? Uncle G is silent about it&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sekspartner</title>
		<link>http://blog.flexexamples.com/2008/03/07/preventing-line-feeds-in-a-textarea-control-in-flex/comment-page-1/#comment-7842</link>
		<dc:creator>sekspartner</dc:creator>
		<pubDate>Thu, 03 Jun 2010 08:53:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/03/07/preventing-line-feeds-in-a-textarea-control-in-flex/#comment-7842</guid>
		<description>Can arrow keys disable? I do not know how to do this.</description>
		<content:encoded><![CDATA[<p>Can arrow keys disable? I do not know how to do this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bharat Patel</title>
		<link>http://blog.flexexamples.com/2008/03/07/preventing-line-feeds-in-a-textarea-control-in-flex/comment-page-1/#comment-7668</link>
		<dc:creator>Bharat Patel</dc:creator>
		<pubDate>Mon, 10 May 2010 07:55:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/03/07/preventing-line-feeds-in-a-textarea-control-in-flex/#comment-7668</guid>
		<description>In TextArea if user type text without pressing enter key and the text will gose to new line. Now when i request for the textarea htmlText, I can&#039;t get any information which show that now next word is in new line.

Please help.
Bharat</description>
		<content:encoded><![CDATA[<p>In TextArea if user type text without pressing enter key and the text will gose to new line. Now when i request for the textarea htmlText, I can&#8217;t get any information which show that now next word is in new line.</p>
<p>Please help.<br />
Bharat</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bruno</title>
		<link>http://blog.flexexamples.com/2008/03/07/preventing-line-feeds-in-a-textarea-control-in-flex/comment-page-1/#comment-7509</link>
		<dc:creator>Bruno</dc:creator>
		<pubDate>Fri, 16 Apr 2010 19:20:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/03/07/preventing-line-feeds-in-a-textarea-control-in-flex/#comment-7509</guid>
		<description>How can I get the new text value when listening for changing events?</description>
		<content:encoded><![CDATA[<p>How can I get the new text value when listening for changing events?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dimitri Kara</title>
		<link>http://blog.flexexamples.com/2008/03/07/preventing-line-feeds-in-a-textarea-control-in-flex/comment-page-1/#comment-7044</link>
		<dc:creator>Dimitri Kara</dc:creator>
		<pubDate>Thu, 18 Feb 2010 09:52:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/03/07/preventing-line-feeds-in-a-textarea-control-in-flex/#comment-7044</guid>
		<description>After further investigation, here is what I found:
With Spark TextArea and TextInput, it seems that you shouldn&#039;t use the textInput event even if you could.
It seems that you should use the changing event instead.
This way, for exemple, you could use event.preventDefault() to cancel the change.

So if you want to use the example of this page with Spark TextArea, replace the textInput tag by a changing tag, and in the handler, the event type is TextOperationEvent instead of TextEvent.

Peter, maybe this should be included in the spark TextArea doc in the textInput item, because it&#039;s not easy to figure it out when transitioning to spark components...</description>
		<content:encoded><![CDATA[<p>After further investigation, here is what I found:<br />
With Spark TextArea and TextInput, it seems that you shouldn&#8217;t use the textInput event even if you could.<br />
It seems that you should use the changing event instead.<br />
This way, for exemple, you could use event.preventDefault() to cancel the change.</p>
<p>So if you want to use the example of this page with Spark TextArea, replace the textInput tag by a changing tag, and in the handler, the event type is TextOperationEvent instead of TextEvent.</p>
<p>Peter, maybe this should be included in the spark TextArea doc in the textInput item, because it&#8217;s not easy to figure it out when transitioning to spark components&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dimitri Kara</title>
		<link>http://blog.flexexamples.com/2008/03/07/preventing-line-feeds-in-a-textarea-control-in-flex/comment-page-1/#comment-7043</link>
		<dc:creator>Dimitri Kara</dc:creator>
		<pubDate>Thu, 18 Feb 2010 09:14:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/03/07/preventing-line-feeds-in-a-textarea-control-in-flex/#comment-7043</guid>
		<description>Thank you for your answer. But the inputText event is listed in the doc for both TextInput and TextArea Spark components, and I can add an eventListener in AS.
So I really think this is a bug, and I filed a &lt;a href=&quot;http://bugs.adobe.com/jira/browse/SDK-25542&quot; rel=&quot;nofollow&quot;&gt;bug report&lt;/a&gt; about this: 

Yet, if I use the addEventListener method, it works, but the evt.preventDefault();  is not producing effect , i.e the text is modified , in a spark component, but not if I use the halo component.
Should I file a bug report also or do you think this is the correct behaviour of the Spark TextArea? (if so, do you know a workaround to have the same result as your example with a Spark text component).</description>
		<content:encoded><![CDATA[<p>Thank you for your answer. But the inputText event is listed in the doc for both TextInput and TextArea Spark components, and I can add an eventListener in AS.<br />
So I really think this is a bug, and I filed a <a href="http://bugs.adobe.com/jira/browse/SDK-25542" rel="nofollow">bug report</a> about this: </p>
<p>Yet, if I use the addEventListener method, it works, but the evt.preventDefault();  is not producing effect , i.e the text is modified , in a spark component, but not if I use the halo component.<br />
Should I file a bug report also or do you think this is the correct behaviour of the Spark TextArea? (if so, do you know a workaround to have the same result as your example with a Spark text component).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2008/03/07/preventing-line-feeds-in-a-textarea-control-in-flex/comment-page-1/#comment-7041</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Thu, 18 Feb 2010 07:39:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/03/07/preventing-line-feeds-in-a-textarea-control-in-flex/#comment-7041</guid>
		<description>@Dimitri,

The MX/Halo and Spark controls are completely different components. They don&#039;t always have the same APIs and/or functionality. For the Spark TextArea, you may need to listen for a different event (like &lt;code&gt;changing&lt;/code&gt; or something).

Peter</description>
		<content:encoded><![CDATA[<p>@Dimitri,</p>
<p>The MX/Halo and Spark controls are completely different components. They don&#8217;t always have the same APIs and/or functionality. For the Spark TextArea, you may need to listen for a different event (like <code>changing</code> or something).</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dimitri Kara</title>
		<link>http://blog.flexexamples.com/2008/03/07/preventing-line-feeds-in-a-textarea-control-in-flex/comment-page-1/#comment-7040</link>
		<dc:creator>Dimitri Kara</dc:creator>
		<pubDate>Thu, 18 Feb 2010 07:22:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/03/07/preventing-line-feeds-in-a-textarea-control-in-flex/#comment-7040</guid>
		<description>When I try to do the same thing with a Sparks TextArea in Flex 4 beta 2, the textInput event tag is missing. 
Is this normal? 
I can listen for the event in AS, but not with a MXML tag..

Try it: add a s:TextArea block, and see if you can a textInput event attribute...</description>
		<content:encoded><![CDATA[<p>When I try to do the same thing with a Sparks TextArea in Flex 4 beta 2, the textInput event tag is missing.<br />
Is this normal?<br />
I can listen for the event in AS, but not with a MXML tag..</p>
<p>Try it: add a s:TextArea block, and see if you can a textInput event attribute&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jaswant tak</title>
		<link>http://blog.flexexamples.com/2008/03/07/preventing-line-feeds-in-a-textarea-control-in-flex/comment-page-1/#comment-6782</link>
		<dc:creator>jaswant tak</dc:creator>
		<pubDate>Fri, 15 Jan 2010 09:28:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/03/07/preventing-line-feeds-in-a-textarea-control-in-flex/#comment-6782</guid>
		<description>Hi Guys,

In my textarea control, when I press ctrl + b or ctrl + q or any key with ctrl (control) key.  It enters a &lt;a href=&quot;http://www.fileformat.info/info/unicode/char/25fb/index.htm&quot; rel=&quot;nofollow&quot;&gt;square  character. &lt;/a&gt;

How can I prevent this to be entered.  I mean if somebody presses ctrl key with any other key,  No new character should be entered in textarea.

Please help,
jaswant</description>
		<content:encoded><![CDATA[<p>Hi Guys,</p>
<p>In my textarea control, when I press ctrl + b or ctrl + q or any key with ctrl (control) key.  It enters a <a href="http://www.fileformat.info/info/unicode/char/25fb/index.htm" rel="nofollow">square  character. </a></p>
<p>How can I prevent this to be entered.  I mean if somebody presses ctrl key with any other key,  No new character should be entered in textarea.</p>
<p>Please help,<br />
jaswant</p>
]]></content:encoded>
	</item>
</channel>
</rss>

