Bug Tracker

Ticket #1217 (closed bug: fixed)

Opened 2 years ago

Last modified 2 years ago

Firefox complains about event.which not being writable (keyboard event handling)

Reported by: mpenet Assigned to: anonymous
Type: bug Priority: major
Milestone: 1.1.3 Component: event
Version: 1.1.2 Keywords:
Cc: Needs: Review

Description

You can reproduce it on firebug with this: $(document).keypress( function() { alert("broken"); } );

Tested on FF 2.0.0.3 / OSX

Attachments

Change History

Changed 2 years ago by john

  • status changed from new to closed
  • resolution set to duplicate

Duplicate of #1216.

Changed 2 years ago by bruno1378

  • status changed from closed to reopened
  • resolution deleted

I am also getting this error. here's the error and the error line.

setting a property that has only a getter [Break on this error] event.which = event.keyCode; jquery.js (line 2976)

I'm seeing this error while using ExtJS and their custom combo box.

Changed 2 years ago by jack.slocum

I can confirm this issue. On any key event, jQuery is setting the property "event.which " on this line:

// Add which for keypresses: keyCode

2975 if ( (event.which == null event.type == "keypress") && event.keyCode != null ) 2976 event.which = event.keyCode; <-- here

Which FireFox? doesn't seem to like very much.

Changed 2 years ago by brandon

  • status changed from reopened to closed
  • resolution set to fixed

This is now fixed in Rev [2009]

Note: See TracTickets for help on using tickets.