diff options
author | bobzel <zzzman@gmail.com> | 2020-12-02 19:40:39 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-12-02 19:40:39 -0500 |
commit | 3b045d03656383df81515485032bfda9e2b16409 (patch) | |
tree | f59cd11894eb40eef15cb831eb02b28fa024fc95 /src | |
parent | 8fdd7fe99ef3360e2693f9abcd9b4fc22096b88b (diff) |
prevent text docs being created when two+ docs are selected.
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/collections/collectionFreeForm/MarqueeView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/collectionFreeForm/MarqueeView.tsx b/src/client/views/collections/collectionFreeForm/MarqueeView.tsx index c4d51f986..eb781ed0a 100644 --- a/src/client/views/collections/collectionFreeForm/MarqueeView.tsx +++ b/src/client/views/collections/collectionFreeForm/MarqueeView.tsx @@ -139,7 +139,7 @@ export class MarqueeView extends React.Component<SubCollectionViewProps & Marque this.props.addDocument(slide); //setTimeout(() => SelectionManager.SelectDoc(DocumentManager.Instance.getDocumentView(slide)!, false)); e.stopPropagation(); - } else if (!e.ctrlKey && !e.metaKey) { + } else if (!e.ctrlKey && !e.metaKey && SelectionManager.SelectedDocuments().length < 2) { FormattedTextBox.SelectOnLoadChar = FormattedTextBox.DefaultLayout && !this.props.ChildLayoutString ? e.key : ""; FormattedTextBox.LiveTextUndo = UndoManager.StartBatch("live text batch"); this.props.addLiveTextDocument(CurrentUserUtils.GetNewTextDoc("-typed text-", x, y, 200, 100, this.props.xMargin === 0)); |