213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
|
sendCommandToTab(xInfo.menuItemId, xTab.id);
break;
// selected text
case "rightClickGCSelectedText":
sendCommandToTab("rightClickGCSelectedText", xTab.id);
xGCEWorker.postMessage({
sCommand: "parseAndSpellcheck",
dParam: {sText: xInfo.selectionText, sCountry: "FR", bDebug: false, bContext: false},
dInfo: {iReturnPort: xTab.id}
});
break;
case "rightClickLxgSelectedText":
sendCommandToTab("rightClickLxgSelectedText", xTab.id);
xGCEWorker.postMessage({
sCommand: "getListOfTokens",
dParam: {sText: xInfo.selectionText},
dInfo: {iReturnPort: xTab.id}
});
break;
// conjugueur
case "conjugueur_window":
openConjugueurWindow();
break;
|
|
|
|
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
|
sendCommandToTab(xInfo.menuItemId, xTab.id);
break;
// selected text
case "rightClickGCSelectedText":
sendCommandToTab("rightClickGCSelectedText", xTab.id);
xGCEWorker.postMessage({
sCommand: "parseAndSpellcheck",
dParam: {sText: xInfo.selectionText.normalize("NFC"), sCountry: "FR", bDebug: false, bContext: false},
dInfo: {iReturnPort: xTab.id}
});
break;
case "rightClickLxgSelectedText":
sendCommandToTab("rightClickLxgSelectedText", xTab.id);
xGCEWorker.postMessage({
sCommand: "getListOfTokens",
dParam: {sText: xInfo.selectionText.normalize("NFC")},
dInfo: {iReturnPort: xTab.id}
});
break;
// conjugueur
case "conjugueur_window":
openConjugueurWindow();
break;
|