JQuery returns same charcode for capitals and lowercase
<p>i have attached this function to the key pressed event with jquery but in the eventObject it returns the same char code for capitals and lower case characters entered</p>

<pre><code>function keyPressed(delegates,eventdata){
        var keyType = new KeyType();
        var keycode = eventdata.which;
        if((keycode === 0)&amp;&amp;(eventdata.keyCode === 46)){
            keycode=46;
        }
        switch(keycode)
        {
        case keyType.enter:
            break;
        case keyType.backspace:
            break;
        case keyType.del:
            break;
        case keyType.space:
            break;
        default:
            keycode = 1;
        }
        console.log(eventdata.charCode);
        console.log(eventdata.which);
        console.log(eventdata.keyCode);
        //if a delegate is present call it
        var delegate = delegates[keycode];
        if(delegate !== null){
            delegate(eventdata);
    }
}
</code></pre>
