Fix mis-type in commit e3c4e57897. Thanks to @jdalton for the catch.

This commit is contained in:
John Resig 2010-09-28 20:13:40 -07:00
parent f1f6bc3ec4
commit ab77451843

View File

@ -470,7 +470,7 @@ jQuery.event = {
} }
// Add which for key events // Add which for key events
if ( event.which == null && (event.charCode != null || event.charCode != null) ) { if ( event.which == null && (event.charCode != null || event.keyCode != null) ) {
event.which = event.charCode != null ? event.charCode : event.keyCode; event.which = event.charCode != null ? event.charCode : event.keyCode;
} }