Skip to main content

Bug Tracker

Side navigation

#10172 closed bug (wontfix)

Opened August 30, 2011 09:47PM UTC

Closed August 30, 2011 10:30PM UTC

Last modified September 24, 2012 02:26PM UTC

Harmonizing the "keypress" event between browsers

Reported by: anonymous Owned by:
Priority: low Milestone: None
Component: event Version: 1.6.2
Keywords: Cc:
Blocked by: Blocking:
Attachments (0)
Change History (2)

Changed August 30, 2011 10:30PM UTC by rwaldron comment:1

component: unfiledevent
priority: undecidedlow
resolution: → wontfix
status: newclosed

Recommend:

$('input').live('keydown', function(event) {
    if ( event.which === 37 ) {
        console.log("left key pressed");
    }
});

And also: http://api.jquery.com/keypress/

Note: as the keypress event isn't covered by any official specification, the actual behavior encountered when using it may differ across browsers, browser versions, and platforms.

Changed September 24, 2012 02:26PM UTC by dmethvin comment:2

#12469 is a duplicate of this ticket.