aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections
diff options
context:
space:
mode:
authorSam Wilkins <abdullah_ahmed@brown.edu>2019-03-11 18:39:28 -0400
committerSam Wilkins <abdullah_ahmed@brown.edu>2019-03-11 18:39:28 -0400
commita8a6f2bb16173d4dc4b0690faf299e817c8937fa (patch)
tree2804c322427213746b97b85ed1fca60a9ece0e86 /src/client/views/collections
parent81c0a8373fd5cb051531762243e200f11f8c7297 (diff)
Stability improvements
Diffstat (limited to 'src/client/views/collections')
-rw-r--r--src/client/views/collections/CollectionFreeFormView.tsx26
1 files changed, 13 insertions, 13 deletions
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