icecats11 / js-hotkeys

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

Alt key not recognized #22

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
WinXP - Firefox 2.0.0.16

This attribute is undefined:
event.altKey

So I changed the line to this:
alt= event.originalEvent.altKey

I have no clue what this does to cross platform compatibility, but our app
runs in a closed network on Firefox 2....being selfish here!

By the way, great library, thank you!

Original issue reported on code.google.com by thadw...@gmail.com on 28 Aug 2008 at 8:52

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
it is a bug in jQuery 125 and 126 
see more at:
http://groups.google.com/group/jquery-en/browse_thread/thread/83e10b3bb1f1c32b

to bypass it right after:
// jQuery event normalization.
event = jQuery.event.fix(event); 

add:

if (!event.altKey){
    event.altKey = event.originalEvent.altKey; 
}

Original comment by Afro.Sys...@gmail.com on 29 Aug 2008 at 3:13