From a8a6f2bb16173d4dc4b0690faf299e817c8937fa Mon Sep 17 00:00:00 2001
From: Sam Wilkins <abdullah_ahmed@brown.edu>
Date: Mon, 11 Mar 2019 18:39:28 -0400
Subject: Stability improvements

---
 .../views/collections/CollectionFreeFormView.tsx   | 26 +++++++++++-----------
 1 file changed, 13 insertions(+), 13 deletions(-)

(limited to 'src/client/views/collections/CollectionFreeFormView.tsx')

diff --git a/src/client/views/collections/CollectionFreeFormView.tsx b/src/client/views/collections/CollectionFreeFormView.tsx
index 11c96d074..0d5e15767 100644
--- a/src/client/views/collections/CollectionFreeFormView.tsx
+++ b/src/client/views/collections/CollectionFreeFormView.tsx
@@ -170,19 +170,19 @@ export class CollectionFreeFormView extends CollectionViewBase {
     @action
     onKeyDown = (e: React.KeyboardEvent<Element>) => {
         //if not these keys, make a textbox if preview cursor is active!
-        if (!e.ctrlKey && !e.altKey) {
-            if (this._previewCursorVisible) {
-                //make textbox and add it to this collection
-                let [x, y] = this.getTransform().transformPoint(this._downX, this._downY); (this._downX, this._downY);
-                let newBox = Documents.TextDocument({ width: 200, height: 100, x: x, y: y, title: "new" });
-                // mark this collection so that when the text box is created we can send it the SelectOnLoad prop to focus itself
-                this._selectOnLoaded = newBox.Id;
-                //set text to be the typed key and get focus on text box
-                this.props.CollectionView.addDocument(newBox);
-                //remove cursor from screen
-                this._previewCursorVisible = false;
-            }
-        }
+        // if (!e.ctrlKey && !e.altKey) {
+        //     if (this._previewCursorVisible) {
+        //         //make textbox and add it to this collection
+        //         let [x, y] = this.getTransform().transformPoint(this._downX, this._downY); (this._downX, this._downY);
+        //         let newBox = Documents.TextDocument({ width: 200, height: 100, x: x, y: y, title: "new" });
+        //         // mark this collection so that when the text box is created we can send it the SelectOnLoad prop to focus itself
+        //         this._selectOnLoaded = newBox.Id;
+        //         //set text to be the typed key and get focus on text box
+        //         this.props.CollectionView.addDocument(newBox);
+        //         //remove cursor from screen
+        //         this._previewCursorVisible = false;
+        //     }
+        // }
     }
 
     @action
-- 
cgit v1.2.3-70-g09d2

