Index: gc_lang/fr/webext/background.js ================================================================== --- gc_lang/fr/webext/background.js +++ gc_lang/fr/webext/background.js @@ -174,10 +174,29 @@ /* Context Menu */ + +// Selected text +browser.contextMenus.create({ + id: "rightClickLxgSelectedText", + title: "Lexicographe (sélection)", + contexts: ["selection"] +}); + +browser.contextMenus.create({ + id: "rightClickGCSelectedText", + title: "Correction grammaticale (sélection)", + contexts: ["selection"] +}); + +browser.contextMenus.create({ + id: "separator_selection", + type: "separator", + contexts: ["selection"] +}); // Editable content browser.contextMenus.create({ id: "rightClickLxgEditableNode", title: "Lexicographe (zone de texte)", @@ -213,29 +232,10 @@ id: "separator_page", type: "separator", contexts: ["page"] }); -// Selected text -browser.contextMenus.create({ - id: "rightClickLxgSelectedText", - title: "Lexicographe (sélection)", - contexts: ["selection"] -}); - -browser.contextMenus.create({ - id: "rightClickGCSelectedText", - title: "Correction grammaticale (sélection)", - contexts: ["selection"] -}); - -browser.contextMenus.create({ - id: "separator_selection", - type: "separator", - contexts: ["selection"] -}); - // Conjugueur browser.contextMenus.create({ id: "conjugueur_window", title: "Conjugueur [fenêtre]", contexts: ["all"]