Trying to detect a keyboard event like keydown or keypress - like #607240: Usability: Allow AJAX behaviors to be triggered with spacebar - causes a flood of warnings in Firefox:

The 'charCode' property of a keyup event should not be used. The value is meaningless.

this seems to be a problem with jQuery - there is a fix in the comments on http://api.jquery.com/event.which/ and though he's referring to jQuery 1.4.2 it seems to work for 1.3.2 as well.

this is an adaptation of that fix as a patch. i couldn't find a jQuery bug for this but i figured other people might run into this same issue.

CommentFileSizeAuthor
jquery_update.charCode.patch79.15 KBbrad.bulger
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

markhalliwell’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Drupal 6 reached EOL (end-of-life) on February 24, 2016.