diff --git a/pkg/lib/cockpit-components-context-menu.tsx b/pkg/lib/cockpit-components-context-menu.tsx index 6a7fdff537e4..9bdaae8c30d2 100644 --- a/pkg/lib/cockpit-components-context-menu.tsx +++ b/pkg/lib/cockpit-components-context-menu.tsx @@ -26,6 +26,13 @@ export const ContextMenu = ({ parentId, children } : { React.useEffect(() => { const _handleContextMenu = (event: MouseEvent) => { + /* In Firefox they explicitly prevent us from interrupting when holding shift while + * right-clicking for context. Lets make it default for all browsers so they can inspect et. al. + */ + if (event.shiftKey) { + setVisible(false); + return; + } event.preventDefault(); setVisible(true);