Skip to main content

Bug Tracker

Side navigation

#1217 closed bug (fixed)

Opened May 21, 2007 08:30AM UTC

Closed May 30, 2007 07:24PM UTC

Last modified June 21, 2007 03:38AM UTC

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

Reported by: mpenet Owned by:
Priority: major Milestone: 1.1.3
Component: event Version: 1.1.2
Keywords: Cc:
Blocked by: Blocking:

You can reproduce it on firebug with this:

$(document).keypress( function() { alert("broken"); } );

Tested on FF / OSX

Attachments (0)
Change History (4)

Changed May 21, 2007 08:47AM UTC by john comment:1

resolution: → duplicate
status: newclosed

Duplicate of #1216.

Changed May 22, 2007 12:20PM UTC by bruno1378 comment:2

resolution: duplicate
status: closedreopened

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 May 24, 2007 12:51AM UTC by jack.slocum comment:3

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 May 30, 2007 07:24PM UTC by brandon comment:4

resolution: → fixed
status: reopenedclosed

This is now fixed in Rev [2009]