summaryrefslogtreecommitdiffstats
path: root/devtools/client/framework/browser-menus.js
diff options
context:
space:
mode:
authorNew Tobin Paradigm <email@mattatobin.com>2018-04-08 19:48:59 -0400
committerGitHub <noreply@github.com>2018-04-08 19:48:59 -0400
commit7156604f1c5866a7f0929a9bd0b3f8f1fc9b5eb9 (patch)
tree7b2c15619feb8659a6ece52c3d61b56fe3a55e0e /devtools/client/framework/browser-menus.js
parentbe78355e8374c566488e1004e3f3c41785dd3dd0 (diff)
parent9a94a94cfff33c7f91614f31a546e47b4c3229ac (diff)
downloadUXP-7156604f1c5866a7f0929a9bd0b3f8f1fc9b5eb9.tar
UXP-7156604f1c5866a7f0929a9bd0b3f8f1fc9b5eb9.tar.gz
UXP-7156604f1c5866a7f0929a9bd0b3f8f1fc9b5eb9.tar.lz
UXP-7156604f1c5866a7f0929a9bd0b3f8f1fc9b5eb9.tar.xz
UXP-7156604f1c5866a7f0929a9bd0b3f8f1fc9b5eb9.zip
Merge pull request #109 from janekptacijarabaci/devtools_appmenu_2
[PALEMOON] [DevTools] Added support of the appmenu for DevTools menuitems (follow up)
Diffstat (limited to 'devtools/client/framework/browser-menus.js')
-rw-r--r--devtools/client/framework/browser-menus.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/devtools/client/framework/browser-menus.js b/devtools/client/framework/browser-menus.js
index c0572a928..a3ed17bbc 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({