Ticket #3229 (closed bug: fixed)
Safari: jQuery.simulate() doesn't set "which" field for key events
| Reported by: | anonymous | Owned by: | rdworth |
|---|---|---|---|
| Priority: | major | Milestone: | 1.8.18 |
| Component: | [meta] ui.test | Version: | 1.5.1 |
| Keywords: | Safari, simulate, keystroke | Cc: | |
| Blocking: | Blocked by: |
Description
In Safari:
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.
Change History
comment:1 Changed 5 years ago by paul
- Owner changed from paul to rdworth
- Status changed from new to assigned
comment:4 Changed 19 months ago by Richard D. Worth
- Status changed from assigned to closed
- Resolution set to fixed
Simulate: fixed charCode to be undefined unless specified. Fixed #3229 - Safari: jQuery.simulate() doesn't set "which" field for key events
Changeset: b90d83c6c4e3f5e328d5557aa35ce9fbded6fd0f
comment:5 Changed 17 months ago by Richard D. Worth
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)
Changeset: 2e1da90608e0d442f1e03508e65875c6949bc250

