MCPcopy Index your code
hub / github.com/ollm/OpenComic / loadContextMenu

Function loadContextMenu

scripts/opencomic.js:445–457  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

443var currentContextMenuInput = false;
444
445async function loadContextMenu()
446{
447 electronRemote.getCurrentWindow().webContents.on('context-menu', function(event, props) {
448
449 currentContextMenuInput = document.activeElement;
450
451 if(props.isEditable)
452 events.activeContextMenu('#global-input-menu');
453 else if(props.selectionText && props.selectionText.trim() !== '')
454 events.activeContextMenu('#global-selection-menu');
455
456 });
457}
458
459var importPromises = {};
460

Callers 1

startAppFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected