aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/DocumentView.tsx
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2020-01-16 09:59:21 -0500
committerBob Zeleznik <zzzman@gmail.com>2020-01-16 09:59:21 -0500
commite410cde0e430553002d4e1a2f64364b57b65fdbc (patch)
treef9f18b8f7667b463045f6c20c382b1dde52da5ae /src/client/views/nodes/DocumentView.tsx
parentc919514f854db67be96ec0f0283bdce635d53571 (diff)
fixed context menu on mac. fixed exceptions with contentScaling and contentfittingviews. fixed sizing of mainview's contents
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r--src/client/views/nodes/DocumentView.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx
index b2c2ccff5..dabe5a7aa 100644
--- a/src/client/views/nodes/DocumentView.tsx
+++ b/src/client/views/nodes/DocumentView.tsx
@@ -583,7 +583,7 @@ export class DocumentView extends DocComponent<DocumentViewProps, Document>(Docu
@action
onContextMenu = async (e: React.MouseEvent): Promise<void> => {
// the touch onContextMenu is button 0, the pointer onContextMenu is button 2
- if (e.button === 0) {
+ if (e.button === 0 && !e.ctrlKey) {
e.preventDefault();
return;
}