diff options
author | Nathan-SR <144961007+Nathan-SR@users.noreply.github.com> | 2024-03-17 02:24:12 -0400 |
---|---|---|
committer | Nathan-SR <144961007+Nathan-SR@users.noreply.github.com> | 2024-03-17 02:24:12 -0400 |
commit | aa8e8fc3a2113c9f98471cc0ca1cfb660387fc81 (patch) | |
tree | 15304f91ffed614d295a89e21a3b4e768f7cceb1 /src | |
parent | 338220488260e11949434b2fd4d03eaaa1f7e53c (diff) |
c
Diffstat (limited to 'src')
-rw-r--r-- | src/client/util/SelectionManager.ts | 3 | ||||
-rw-r--r-- | src/client/views/collections/collectionSchema/CollectionSchemaView.tsx | 7 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/client/util/SelectionManager.ts b/src/client/util/SelectionManager.ts index 1ab982af1..0862cf20e 100644 --- a/src/client/util/SelectionManager.ts +++ b/src/client/util/SelectionManager.ts @@ -36,7 +36,6 @@ export class SelectionManager { else if (!docView.IsSelected) { if (!extendSelection) { this.DeselectAll(); - console.log("1"); }; this.Instance.SelectedViews.push(docView); docView.IsSelected = true; @@ -46,6 +45,7 @@ export class SelectionManager { }); public static DeselectView = action((docView?: DocumentView): void => { + console.log(3); if (docView && this.Instance.SelectedViews.includes(docView)) { docView.IsSelected = false; this.Instance.SelectedViews.splice(this.Instance.SelectedViews.indexOf(docView), 1); @@ -54,7 +54,6 @@ export class SelectionManager { }); public static DeselectAll = (except?: Doc): void => { - console.log("deselected"); const found = this.Instance.SelectedViews.find(dv => dv.Document === except); runInAction(() => { LinkManager.Instance.currentLink = undefined; diff --git a/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx b/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx index 71d54eae2..4e90f5006 100644 --- a/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx +++ b/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx @@ -187,7 +187,7 @@ export class CollectionSchemaView extends CollectionSubView() { const lastIndex = this.rowIndex(lastDoc); const curDoc = this.sortedDocs.docs[lastIndex]; if (lastIndex >= 0 && lastIndex < this.childDocs.length - 1) { - //!e.shiftKey && this.clearSelection(); + !e.shiftKey && this.clearSelection(); const newDoc = this.sortedDocs.docs[lastIndex + 1]; const newDoc2 = this.sortedDocs.docs[lastIndex + 2]; if (this._selectedDocs.includes(newDoc)) { @@ -418,7 +418,10 @@ export class CollectionSchemaView extends CollectionSubView() { }; @action - clearSelection = () => SelectionManager.DeselectAll(); + clearSelection = () => { + SelectionManager.DeselectAll() + console.log(2); + }; selectRows = (doc: Doc, lastSelected: Doc) => { const index = this.rowIndex(doc); |