Bug Tracker

Opened 9 years ago

Closed 8 years ago

#4584 closed enhancement (invalid)

Append "contextmenu" event feature

Reported by: harobed Owned by: brandon
Priority: major Milestone: 1.4
Component: event Version: 1.3.2
Keywords: contextmenu Cc:
Blocked by: Blocking:

Description

Example of use :

<html>
<head>
<script type="text/javascript" src="jquery-1.3.2.js"></script>
<script type="text/javascript">
$(document).ready(function() {
    /*
    
    // Example without jquery
    document.getElementById("contextmenu").oncontextmenu = function(e) {
        console.log("contextmenu");
        return false;
    }
    */

    // Example with jquery
    $("#contextmenu").contextmenu(function(e) {
        console.log("contextmenu");
        return false;
    });
});
</script>
</head>
<body>
<p id="contextmenu">contextmenu</p>
</body>
</html>

Regards, Stephane

Attachments (1)

jquery.contextmenu.patch (562 bytes) - added by harobed 9 years ago.
contextmenu patch

Download all attachments as: .zip

Change History (2)

Changed 9 years ago by harobed

Attachment: jquery.contextmenu.patch added

contextmenu patch

comment:1 Changed 8 years ago by dmethvin

Resolution: invalid
Status: newclosed

Just use .bind("contextmenu", ...).

Note: See TracTickets for help on using tickets.