diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-08 21:55:44 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-08 21:55:44 +0200 |
commit | 9a94a94cfff33c7f91614f31a546e47b4c3229ac (patch) | |
tree | e0121b49c4d2936ec9defc7fb8b1d0faf2f71fe0 /devtools/client/framework/browser-menus.js | |
parent | 2e7c6320a8baed64edfc7576cabfcdbf8ee155d3 (diff) | |
download | UXP-9a94a94cfff33c7f91614f31a546e47b4c3229ac.tar UXP-9a94a94cfff33c7f91614f31a546e47b4c3229ac.tar.gz UXP-9a94a94cfff33c7f91614f31a546e47b4c3229ac.tar.lz UXP-9a94a94cfff33c7f91614f31a546e47b4c3229ac.tar.xz UXP-9a94a94cfff33c7f91614f31a546e47b4c3229ac.zip |
[PALEMOON] [DevTools] Added support of the appmenu for DevTools menuitems (follow up)
Issue #96
Issue #102
Diffstat (limited to 'devtools/client/framework/browser-menus.js')
-rw-r--r-- | devtools/client/framework/browser-menus.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/devtools/client/framework/browser-menus.js b/devtools/client/framework/browser-menus.js index 15d2ec1b6..33a0a2da5 100644 --- a/devtools/client/framework/browser-menus.js +++ b/devtools/client/framework/browser-menus.js @@ -133,10 +133,11 @@ function attachKeybindingsToBrowser(doc, keys) { */ function createToolMenuElements(toolDefinition, doc) { let id = toolDefinition.id; + let appmenuId = "appmenuitem_" + id; let menuId = "menuitem_" + id; // Prevent multiple entries for the same tool. - if (doc.getElementById(menuId)) { + if (doc.getElementById(appmenuId) || doc.getElementById(menuId)) { return; } @@ -321,6 +322,7 @@ function addTopLevelItems(doc) { doc, id: "app" + id, label: l10n(l10nKey + ".label"), + accesskey: null, isCheckbox: item.checkbox }); let menuitem = createMenuItem({ |