I am using e.keyCode || e.which; to determine which key was pressed, but I am getting 65 for both a and A why is this happening and how can I detect the difference between the two?
I am using e.keyCode || e.which; to determine which key was pressed, but I
Share
just use
e.whichin jquery. They normalize this value for all browsers.Additionally you can check for
e.shiftKey.