1 Reply Latest reply on May 29, 2012 1:36 AM by kiran1989

    Converting a KeyboardEvent into a character

    Freeman6561

      Hi,

      I'm facing a new issue when I try to convert a keycode/charcode into an ASCII character.

      Indeed, I used the String.fromCharCode method but it doesn't handle the shift key.

      For example, when a hit the &/1 key (FR keyboard) I get the same code with and without the shift key.

       

      So i'm looking for an univerval solution to convert the KeyboardEvent information into the correct ASCII character.

       

      Has anybody an idea to achieve this?

       

      Thanks,