Bug Tracker

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#11052 closed bug (fixed)

.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:

Description

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

Change History (2)

comment:1 Changed 11 years ago by sindresorhus

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.

comment:2 Changed 11 years ago by dmethvin

Resolution: fixed
Status: openclosed

Docs updated.

Note: See TracTickets for help on using tickets.