Bug Tracker

Modify

Ticket #10172 (closed bug: wontfix)

Opened 22 months ago

Last modified 9 months ago

Harmonizing the "keypress" event between browsers

Reported by: anonymous Owned by:
Priority: low Milestone: None
Component: event Version: 1.6.2
Keywords: Cc:
Blocking: Blocked by:

Change History

comment:1 Changed 22 months ago by rwaldron

  • Priority changed from undecided to low
  • Resolution set to wontfix
  • Status changed from new to closed
  • Component changed from unfiled to event

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.

comment:2 Changed 9 months ago by dmethvin

#12469 is a duplicate of this ticket.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.