]> source.dussan.org Git - jquery.git/commitdiff
Fix mis-type in commit e3c4e5789743eecb3cbe2b626f3a5f09c616ee4b. Thanks to @jdalton...
authorJohn Resig <jeresig@gmail.com>
Wed, 29 Sep 2010 03:13:40 +0000 (20:13 -0700)
committerJohn Resig <jeresig@gmail.com>
Wed, 29 Sep 2010 03:13:40 +0000 (20:13 -0700)
src/event.js

index 00bef8472e5d75c4cbcbf8ed654ea53376b2d038..dcb872a735916dc6f695a5351ba850da1a210bb1 100644 (file)
@@ -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;
                }