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

Function handleHeaderRightClick

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

Source from the content-addressed store, hash-verified

132 };
133
134 const handleHeaderRightClick = (
135 e: React.MouseEvent<HTMLDivElement, MouseEvent>,
136 group: IEditorGroup
137 ) => {
138 e.preventDefault();
139 const groupHeaderContext = headerContextMenu || contextMenu;
140 contextView.show(getEventPosition(e), () => (
141 <Menu
142 role="menu"
143 onClick={(_, item) => handleOnMenuClick(item!, group)}
144 data={groupHeaderContext}
145 />
146 ));
147 };
148
149 // click group title will open the first file in this group
150 const handleGroupClick = (e, group: IEditorGroup) => {

Callers 1

EditorTreeFunction · 0.85

Calls 3

getEventPositionFunction · 0.90
showMethod · 0.80
handleOnMenuClickFunction · 0.70

Tested by

no test coverage detected