diff --git a/.changeset/soft-adults-fail.md b/.changeset/soft-adults-fail.md new file mode 100644 index 0000000..e0542e9 --- /dev/null +++ b/.changeset/soft-adults-fail.md @@ -0,0 +1,5 @@ +--- +"click-to-react-component": patch +--- + +Show menu only on Option+Right-click diff --git a/packages/click-to-react-component/src/ContextMenu.js b/packages/click-to-react-component/src/ContextMenu.js index bfc1dfb..63ec33a 100644 --- a/packages/click-to-react-component/src/ContextMenu.js +++ b/packages/click-to-react-component/src/ContextMenu.js @@ -113,6 +113,10 @@ export const ContextMenu = React.forwardRef( /** @type {MouseEvent} */ e ) { + if (!e.altKey) { + return + } + e.preventDefault() mergedReferenceRef({ getBoundingClientRect() {