title: Flex RichTextEditor - Discard Ctrl+Y
body: <p>I'm using RichTextEditor in my AIR desktop application, built with flex 3.6.</p>
  
  <p>Since there's no undo/redo management, I'm trying to extend the component functionality.</p>
  
  <p>I got a function I got a problem everytime <kbd>CTRL</kbd>+<kbd>Y</kbd> are pressed.</p>
  
  <p>This what I actually do when a key is pressed.</p>
  
  <pre><code>&lt;mx:RichTextEditor 
      id="myRTE"
      keyDown="onKeyDown(event);"
  /&gt;
  
  ....
  
  public function onKeyDown(event:KeyboardEvent):void
  {
      if (event.ctrlKey &amp;&amp; event.charCode == 122)
      {
          // ctrl + z pressed!
          undo();
      }
  
      if (event.ctrlKey &amp;&amp; event.charCode == 121)
      {
          // ctrl + y pressed!
          redo();
      }
  }
  </code></pre>
  
  <p>My problem is that <kbd>CTRL</kbd> + <kbd>Y</kbd> output also a weird char in my RichTextEditor but i would like to discard it.</p>
  
  <p>I tried to put a event.stopImmediatePropagation(); just after the redo(); but the weird char is appended to my RichTextEditor anyway.</p>
  
  <p>I really don't know how get rid of that.</p>
  
  <p>Any idea?</p>