From: John Resig Date: Wed, 29 Sep 2010 03:13:40 +0000 (-0700) Subject: Fix mis-type in commit e3c4e5789743eecb3cbe2b626f3a5f09c616ee4b. Thanks to @jdalton... X-Git-Tag: 1.4.3rc1~30 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ab77451843e07dd57101e933b5b6c093b024d8eb;p=jquery.git Fix mis-type in commit e3c4e5789743eecb3cbe2b626f3a5f09c616ee4b. Thanks to @jdalton for the catch. --- diff --git a/src/event.js b/src/event.js index 00bef8472..dcb872a73 100644 --- a/src/event.js +++ b/src/event.js @@ -470,7 +470,7 @@ jQuery.event = { } // 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; }