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:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user