From 2e1da90608e0d442f1e03508e65875c6949bc250 Mon Sep 17 00:00:00 2001 From: "Richard D. Worth" Date: Mon, 7 Nov 2011 15:49:20 -0500 Subject: [PATCH] Simulate: fixed charCode to be undefined unless specified. Fixed #3229 - Safari: jQuery.simulate() doesn't set "which" field for key events (cherry picked from commit b90d83c6c4e3f5e328d5557aa35ce9fbded6fd0f) --- tests/jquery.simulate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) ) { -- 2.39.5