aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/DocumentView.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r--src/client/views/nodes/DocumentView.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx
index 964231e9d..c4c14c0ab 100644
--- a/src/client/views/nodes/DocumentView.tsx
+++ b/src/client/views/nodes/DocumentView.tsx
@@ -624,7 +624,7 @@ export class DocumentViewInternal extends DocComponent<DocumentViewInternalProps
}
} else if (!this._longPress && this.onClickHandler?.script && !isScriptBox()) {
// bcz: hack? don't execute script if you're clicking on a scripting box itself
- const { clientX, clientY, shiftKey, altKey } = e;
+ const { clientX, clientY, shiftKey, altKey, metaKey } = e;
const func = () =>
this.onClickHandler.script.run(
{
@@ -638,6 +638,7 @@ export class DocumentViewInternal extends DocComponent<DocumentViewInternalProps
clientY,
shiftKey,
altKey,
+ metaKey,
},
console.log
).result?.select === true