1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 06:07:59 +01:00

Add "c" extended hint mode to open the context menu.

This commit is contained in:
Doug Kearns
2009-05-23 22:54:59 +10:00
parent 955ee4185b
commit c7b48361ee
4 changed files with 22 additions and 5 deletions

View File

@@ -1255,6 +1255,18 @@ function Buffer() //{{{
.getInterface(Ci.nsISelectionDisplay)
.QueryInterface(Ci.nsISelectionController),
/**
* Opens the appropriate context menu for <b>elem</b>.
*
* @param {Node} elem The context element.
*/
openContextMenu: function (elem)
{
document.popupNode = elem;
let menu = document.getElementById("contentAreaContextMenu");
menu.showPopup(elem, -1, -1, "context", "bottomleft", "topleft");
},
/**
* Saves a page link to disk.
*