Add addon: contextMenuWindow
This commit is contained in:
parent
6f2b747e0c
commit
9306959dfe
|
@ -0,0 +1,9 @@
|
|||
def newAction(status):
|
||||
browser = mfp.require("browser")
|
||||
browser.windows.append(mfp.require("browser").module.require(mfp.p("window","browser.py")).create("about:blank"))
|
||||
|
||||
def addNew(status):
|
||||
status.addon.addItem(status,"New window",newAction)
|
||||
|
||||
eventHandler = mfp.Bunch()
|
||||
eventHandler["contextMenu:created"] = addNew
|
Loading…
Reference in New Issue