Is there a way I can convert a javascript keycode into one that is used by C#?
For example 87 is the character 'w' in javascript, but in C# it's 57. And 77 is 'm' whereas it's 4D in C#. Is there a simple way to convert them? Thanks.
@minitech - character codes in JavaScript definitely do not discard case - "w".charCodeAt(0) is 199 and "W".charCodeAt(0) is 87. It sounds like they do in C# though. Learn something new every day.
@D.Shawley: I'm talking about the keydown event - key codes, not character codes. C# works the same way; otherwise, there would be some ASCII problems! :) Here's an example jsFiddle.
shiftKey/Shiftproperty for that.keydownevent - key codes, not character codes. C# works the same way; otherwise, there would be some ASCII problems! :) Here's an example jsFiddle.