MCPcopy Create free account
hub / github.com/DTStack/molecule / handleOnMenuClick

Function handleOnMenuClick

src/workbench/sidebar/explore/editorTree.tsx:110–117  ·  view source on GitHub ↗
(
        menu: IMenuItemProps,
        group: IEditorGroup,
        file?: ITabProps
    )

Source from the content-addressed store, hash-verified

108 };
109
110 const handleOnMenuClick = (
111 menu: IMenuItemProps,
112 group: IEditorGroup,
113 file?: ITabProps
114 ) => {
115 contextView.hide();
116 onContextMenu?.(menu, group.id!, file);
117 };
118
119 const handleRightClick = (
120 e: React.MouseEvent<HTMLDivElement, MouseEvent>,

Callers 2

handleRightClickFunction · 0.70
handleHeaderRightClickFunction · 0.70

Calls 2

onContextMenuFunction · 0.85
hideMethod · 0.80

Tested by

no test coverage detected