1 Reply Latest reply on Oct 10, 2008 5:59 AM by AnandGanesan

    default button in rich Text Editor

    sohilr
      I wanna create my small chat aplication..
      i wanted rich text box to take user intput and presses enter.. It should be able to send the message
      However rich text box doesnt seem to handle defaultButton as others do.
      Any idea how it can be acheived. ?
      Thanks
      Sohil
        • 1. Re: default button in rich Text Editor
          AnandGanesan
          Hi,

          I am having an alternate solution .Check this.

          <mx:Script>
          <![CDATA[
          import flash.events.KeyboardEvent;

          private function RTEKeyDownHandler(event:KeyboardEvent):void
          {
          if(event.keyCode==13)
          {
          trace("Send Message");
          }
          }
          ]]>
          </mx:Script>
          <mx:RichTextEditor id="myRTE" keyDown="RTEKeyDownHandler(event)"/>