From e504cafc7923b5d78c41fda7b986d374a4f88fd2 Mon Sep 17 00:00:00 2001 From: Shaurya-Taneja Date: Mon, 27 Mar 2017 17:07:26 +0530 Subject: [PATCH] Update KeyEvent to include 'which' property Regarding https://github.com/jquery/jquery-simulate/issues/50 , add 'which' property --- jquery.simulate.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/jquery.simulate.js b/jquery.simulate.js index 75d9b67..781fb9b 100644 --- a/jquery.simulate.js +++ b/jquery.simulate.js @@ -161,7 +161,8 @@ $.extend( $.simulate.prototype, { shiftKey: false, metaKey: false, keyCode: 0, - charCode: undefined + charCode: undefined, + which: undefined }, options ); if ( document.createEvent ) { @@ -184,7 +185,8 @@ $.extend( $.simulate.prototype, { shiftKey: options.shiftKey, metaKey: options.metaKey, keyCode: options.keyCode, - charCode: options.charCode + charCode: options.charCode, + which: options.which }); } } else if ( document.createEventObject ) {