0 Replies Latest reply on Apr 18, 2007 7:50 AM by kad7715

    Converting tab key to enter key on datagrid

    kad7715
      I want to trap the enter key and convert it to a tab key on a datagrid component.

      I tried:
      this.addEventListener(KeyboardEvent.KEY_DOWN, trapKeys);

      private function trapKeys(e:KeyboardEvent):void
      {
      if(e.keyCode==13)
      {
      e.keyCode=9;
      }
      }

      This catches the keydown, but doesn't seem to convert a enter key press into a tab key.

      TIA