Index: gc_lang/fr/webext/content_scripts/init.js ================================================================== --- gc_lang/fr/webext/content_scripts/init.js +++ gc_lang/fr/webext/content_scripts/init.js @@ -52,10 +52,14 @@ listenRightClick: function () { document.addEventListener('contextmenu', function (xEvent) { this.xRightClickedNode = xEvent.target; }.bind(this), true); }, + + clearRightClickedNode: function () { + this.xRightClickedNode = null; + }, createMenus: function () { let lNode = document.getElementsByTagName("textarea"); for (let xNode of lNode) { if (xNode.style.display !== "none" && xNode.style.visibility !== "hidden") { Index: gc_lang/fr/webext/content_scripts/panel.js ================================================================== --- gc_lang/fr/webext/content_scripts/panel.js +++ gc_lang/fr/webext/content_scripts/panel.js @@ -90,10 +90,11 @@ this.xPanel.style.display = "block"; } hide () { this.xPanel.style.display = "none"; + oGrammalecte.clearRightClickedNode(); } center () { let nHeight = (this.bFlexible) ? window.innerHeight-100 : this.nHeight; this.xPanel.style = `top: 50%; left: 50%; width: ${this.nWidth}px; height: ${nHeight}px; margin-top: -${nHeight/2}px; margin-left: -${this.nWidth/2}px;`;