Safari: jQuery.simulate() doesn't set "which" field for key events
|Reported by:||anonymous||Owned by:||rdworth|
|Keywords:||Safari, simulate, keystroke||Cc:|
When jQuery.simulate() calls document.createEvent("KeyEvents"), it fails. It falls through to the catch clause, which tries document.createEvent("Events"), which succeeds, but the key event that results doesn't have its "which" field set.