aboutsummaryrefslogtreecommitdiff
path: root/src/client/views
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/views')
-rw-r--r--src/client/views/Main.tsx2
-rw-r--r--src/client/views/collections/CollectionFreeFormView.tsx26
2 files changed, 14 insertions, 14 deletions
diff --git a/src/client/views/Main.tsx b/src/client/views/Main.tsx
index 73d5fa8a9..44fdf60ce 100644
--- a/src/client/views/Main.tsx
+++ b/src/client/views/Main.tsx
@@ -72,7 +72,7 @@ export class Main extends React.Component {
@action
createNewWorkspace = (init: boolean): void => {
- let mainDoc = Documents.DockDocument(JSON.stringify({ content: [{ type: 'row', content: [] }] }), { title: `Main Container ${this.userWorkspaces.length}` });
+ let mainDoc = Documents.DockDocument(JSON.stringify({ content: [{ type: 'row', content: [] }] }), { title: `Main Container ${this.userWorkspaces.length + 1}` });
let newId = mainDoc.Id;
request.post(this.contextualize("addWorkspaceId"), {
body: { target: newId },
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