Skip to main content

Bug Tracker

Side navigation

#3284 closed bug (duplicate)

Opened August 23, 2008 06:04PM UTC

Closed August 24, 2008 10:10PM UTC

Since 1.2.5 event.altKey is undefined

Reported by: tzury Owned by:
Priority: major Milestone: 1.3
Component: event Version: 1.2.6
Keywords: event altKey Cc:
Blocked by: Blocking:
Description

I created a simple document which one can use with firebug and start combining 'alt' with another key so to see the result.

I found it using it with FF3 on Linux. And have no idea how it will behave in other platforms / environments.

<html>
    <head>
        <script src="http://jqueryjs.googlecode.com/files/jquery-1.2.5.js"></script>
        <script>
            $(document).ready(function (){
                $.event.add(document, 'keydown', showEventDetails);
                });
            function showEventDetails(event){
                console.log("Alt:%s", event.altKey);
            }
        </script>
    </head>
    <body>
    </body>
</html>
Attachments (0)
Change History (2)

Changed August 24, 2008 07:50PM UTC by tzury comment:1

Replying to [ticket:3284 tzury]:

already been fixed in the svn version

should be closed

I created a simple document which one can use with firebug and start combining 'alt' with another key so to see the result. I found it using it with FF3 on Linux. And have no idea how it will behave in other platforms / environments.
> <html>
>     <head>
>         <script src="http://jqueryjs.googlecode.com/files/jquery-1.2.5.js"></script>
>         <script>
>             $(document).ready(function (){
>                 $.event.add(document, 'keydown', showEventDetails);
>                 });
>             function showEventDetails(event){
>                 console.log("Alt:%s", event.altKey);
>             }
>         </script>
>     </head>
>     <body>
>     </body>
> </html>
> 

Changed August 24, 2008 10:10PM UTC by flesler comment:2

resolution: → duplicate
status: newclosed