Ticket #3229 (closed bug: fixed)

Opened 6 years ago

Last modified 3 years ago

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 6 years ago by paul

  • Owner changed from paul to rdworth
  • Status changed from new to assigned

comment:2 Changed 6 years ago by rdworth

  • Component changed from ui.core to [internal] ui.test

comment:3 Changed 3 years ago by scott.gonzalez

  • Milestone changed from TBD to 1.9

comment:4 Changed 3 years 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 3 years 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

comment:6 Changed 3 years ago by scott.gonzalez

  • Milestone changed from 1.9 to 1.8.18
Note: See TracTickets for help on using tickets.