burak277 / js-hotkeys

Automatically exported from code.google.com/p/js-hotkeys
0 stars 0 forks source link

Keydown fires 6 times under jQuery 1.4.2 and Webkit #77

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I have a setup which worked fine until I upgraded jQuery to 1.4.2 just now, 
which looks like this:

jQuery(document).bind('keydown.hotkeys', {combi: 'J', disableInInput: true}, 
function() { console.log('J was pressed') });

After 1.4.2, pressing J will fire the event six times instantly. Using keyup 
instead of keydown works fine (but doesn't feel right, so...).

Original issue reported on code.google.com by heilemann on 19 Feb 2010 at 10:04

GoogleCodeExporter commented 9 years ago
And, as implied, the same code works fine in Firefox.

Original comment by heilemann on 19 Feb 2010 at 10:06

GoogleCodeExporter commented 9 years ago
I have seen this as well. I was using hotkeys on a site, and I started getting 
bug 
reports as soon as I switched from jQuery 1.3.X to 1.4.X  The event was being 
fired 
multiple times per key.

Original comment by vedderma...@gmail.com on 23 Feb 2010 at 9:27

GoogleCodeExporter commented 9 years ago
Check this out: 
http://forum.jquery.com/topic/problem-with-bind-keydown-in-jquery-1-4-
2#14737000000727818

Original comment by heilemann on 25 Feb 2010 at 9:09

GoogleCodeExporter commented 9 years ago
John Resig JQuery's creator has fork and fix these problems.
check it out at http://github.com/jeresig/jquery.hotkeys/

Original comment by Afro.Sys...@gmail.com on 25 Feb 2010 at 11:53