From: Richard D. Worth Date: Mon, 7 Nov 2011 20:49:20 +0000 (-0500) Subject: Simulate: fixed charCode to be undefined unless specified. Fixed #3229 - Safari:... X-Git-Tag: 1.9m7~154 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b90d83c6c4e3f5e328d5557aa35ce9fbded6fd0f;p=jquery-ui.git Simulate: fixed charCode to be undefined unless specified. Fixed #3229 - Safari: jQuery.simulate() doesn't set "which" field for key events --- diff --git a/tests/jquery.simulate.js b/tests/jquery.simulate.js index adc340049..a37302c46 100644 --- a/tests/jquery.simulate.js +++ b/tests/jquery.simulate.js @@ -90,7 +90,7 @@ $.extend( $.simulate.prototype, { shiftKey: false, metaKey: false, keyCode: 0, - charCode: 0 + charCode: undefined }, options ); if ( $.isFunction( document.createEvent ) ) {