diff options
author | Nathan-SR <144961007+Nathan-SR@users.noreply.github.com> | 2024-03-14 02:57:51 -0400 |
---|---|---|
committer | Nathan-SR <144961007+Nathan-SR@users.noreply.github.com> | 2024-03-14 02:57:51 -0400 |
commit | 9606a7f68d1c8cee461d9953d3407a29d8657375 (patch) | |
tree | c41756ae92b216f8eb793e6b7c93197965d36969 /src | |
parent | 939e7203cae7d9408624864ef28d488cdd8ab27f (diff) |
addDocToSelection test 3
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/collections/collectionSchema/CollectionSchemaView.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx b/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx index dfdd936cf..4460cb2f5 100644 --- a/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx +++ b/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx @@ -189,10 +189,12 @@ export class CollectionSchemaView extends CollectionSubView() { if (lastIndex >= 0 && lastIndex < this.childDocs.length - 1) { !e.shiftKey && this.clearSelection(); const newDoc = this.sortedDocs.docs[lastIndex + 1]; + const newDoc2 = this.sortedDocs.docs[lastIndex + 2]; if (this._selectedDocs.includes(newDoc)) { SelectionManager.DeselectView(DocumentManager.Instance.getFirstDocumentView(curDoc)); } else { - //this.addDocToSelection(newDoc, e.shiftKey, lastIndex + 1); + this.addDocToSelection(newDoc, e.shiftKey, lastIndex + 1); + this.addDocToSelection(newDoc2, e.shiftKey, lastIndex + 2); //this._selectedCell && (this._selectedCell[0] = newDoc); this.scrollToDoc(newDoc, {}); } |