Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
jquery_update.charCode.patch | 79.15 KB | brad.bulger | |
Comments
Comment #1
markhalliwellDrupal 6 reached EOL (end-of-life) on February 24, 2016.