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

Function handleRightClick

src/workbench/sidebar/explore/editorTree.tsx:119–132  ·  view source on GitHub ↗
(
        e: React.MouseEvent<HTMLDivElement, MouseEvent>,
        group: IEditorGroup,
        file: ITabProps
    )

Source from the content-addressed store, hash-verified

117 };
118
119 const handleRightClick = (
120 e: React.MouseEvent<HTMLDivElement, MouseEvent>,
121 group: IEditorGroup,
122 file: ITabProps
123 ) => {
124 e.preventDefault();
125 contextView.show(getEventPosition(e), () => (
126 <Menu
127 role="menu"
128 onClick={(_, item) => handleOnMenuClick(item!, group, file)}
129 data={contextMenu}
130 />
131 ));
132 };
133
134 const handleHeaderRightClick = (
135 e: React.MouseEvent<HTMLDivElement, MouseEvent>,

Callers 1

EditorTreeFunction · 0.70

Calls 3

getEventPositionFunction · 0.90
showMethod · 0.80
handleOnMenuClickFunction · 0.70

Tested by

no test coverage detected