0 Replies Latest reply on Feb 25, 2011 9:38 AM by Zolotoj

    Fun with a keyboard scanner

    Zolotoj Level 3

      I have rather strange problem wtih a simple keyboard scanner. I am scanning into the following text field:

       

      <mx:TextInpout id="userid"
                     restrict="0-9" width="70" keyDown="run(event)" height="20"/>

       

      private function run(event:KeyboardEvent):void
                  {
                      trace(event.shiftKey);
                      trace(event.keyCode);

       

      .....

      The fun comes out of a letter 'U' being scanned. Because traces would look like this:

       

      true

      16

       

      Scanning other letters does not have this phenomena.

       

      Thanks for help.