this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Test propagate contextmenu event

No long press yet

+14
+14
src/components/notification.jsx
··· 286 286 ? `/${instance}/s/${actualStatusID}` 287 287 : `/s/${actualStatusID}` 288 288 } 289 + onContextMenu={(e) => { 290 + const post = e.target.querySelector('.status'); 291 + if (post) { 292 + // Fire a custom event to open the context menu 293 + if (e.metaKey) return; 294 + e.preventDefault(); 295 + post.dispatchEvent( 296 + new MouseEvent('contextmenu', { 297 + clientX: e.clientX, 298 + clientY: e.clientY, 299 + }), 300 + ); 301 + } 302 + }} 289 303 > 290 304 {isStatic ? ( 291 305 <Status status={actualStatus} size="s" />