Bug Tracker

Ticket #3284 (closed bug: duplicate)

Opened 6 years ago

Last modified 6 years ago

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:
Blocking: Blocked by:

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>

Change History

comment:1 in reply to: ↑ description Changed 6 years ago by tzury

Replying to 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>

comment:2 Changed 6 years ago by flesler

  • Status changed from new to closed
  • Resolution set to duplicate
Note: See TracTickets for help on using tickets.