diff options
author | bob <bcz@cs.brown.edu> | 2019-04-16 12:38:42 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-04-16 12:38:42 -0400 |
commit | feae8f4d314ef389cc544fd3ad0792a6bb04832c (patch) | |
tree | b3d6d1fd3675557fc60c3b34f4d939d8fe153ff9 /src/client/views/nodes/DocumentView.tsx | |
parent | bb935a1af68c3684640cf93e04b55324142b05ea (diff) |
fixed some text focus issues. fixed contextmenu a bit. removed upload files.
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r-- | src/client/views/nodes/DocumentView.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index 0d974c97e..1cbb24223 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -277,11 +277,12 @@ export class DocumentView extends React.Component<DocumentViewProps> { @action onContextMenu = (e: React.MouseEvent): void => { e.stopPropagation(); - e.preventDefault(); if (Math.abs(this._downX - e.clientX) > 3 || Math.abs(this._downY - e.clientY) > 3 || e.isDefaultPrevented()) { + e.preventDefault(); return; } + e.preventDefault(); !this.isMinimized() && ContextMenu.Instance.addItem({ description: "Minimize", event: this.minimize }); ContextMenu.Instance.addItem({ description: "Full Screen", event: this.fullScreenClicked }); |