Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions pkg/lib/cockpit-components-context-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Comment on lines +32 to +34
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These 3 added lines are not executed by any test. Details

}
event.preventDefault();

setVisible(true);
Expand Down