We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ebd21e commit 92cd56bCopy full SHA for 92cd56b
src/input.ts
@@ -174,6 +174,11 @@ export function handleMouseDown(
174
view: EditorView,
175
startEvent: MouseEvent,
176
): void {
177
+ // Only handle mouse down events for the main button (usually the left button).
178
+ // This ensures that the cell selection won't be triggered when trying to open
179
+ // the context menu.
180
+ if (startEvent.button != 0) return;
181
+
182
if (startEvent.ctrlKey || startEvent.metaKey) return;
183
184
const startDOMCell = domInCell(view, startEvent.target as Node);
0 commit comments