Skip to main content

Bug Tracker

Side navigation

#11052 closed bug (fixed)

Opened December 17, 2011 07:49PM UTC

Closed March 03, 2012 10:22PM UTC

Last modified March 09, 2012 08:40PM UTC

.keydown() example uses .keyCode instead of .which

Reported by: SidneySM Owned by:
Priority: low Milestone: None
Component: event Version: 1.7.1
Keywords: Cc:
Blocked by: Blocking:

The .keydown() docs say that event.which is normalized, but the example uses event.keyCode.

Attachments (0)
Change History (2)

Changed December 21, 2011 10:35AM UTC by sindresorhus comment:1

component: unfiledevent
priority: undecidedlow
status: newopen

Even though the "Enter" keyCode is the same in all browsers, the example should dogfood it's own best practice.

Changed March 03, 2012 10:22PM UTC by dmethvin comment:2

resolution: → fixed
status: openclosed

Docs updated.