keypress event -> keyCode attribute obsolete?
Hi,
the documention on keypress states that "jQuery normalizes the .which attribute so we can reliably use it to retrieve the character code". Does this mean that the .keyCode attribute is basically obsolete?
I ask because I find a lot of code on the web where both attributes are used within an if clause, as if it was necessary to check both values. Even this very entry (keypress) of the jQuery API Docs has .keyCode in the example. Why is that?
Thanks
-Martin