Skip to content

Commit c436d82

Browse files
committed
Return early when holding shift
1 parent 42dbe3c commit c436d82

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/compass-context-menu/src/context-menu-provider.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ export function ContextMenuProvider({
6969

7070
function handleContextMenu(event: MouseEvent) {
7171
const itemGroups = getContextMenuContent(event as EnhancedMouseEvent);
72-
73-
if (itemGroups.length === 0) {
72+
if (itemGroups.length === 0 || event.shiftKey) {
7473
return;
7574
}
7675

0 commit comments

Comments
 (0)