aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/SelectionManager.ts
diff options
context:
space:
mode:
authorNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2024-03-16 15:06:12 -0400
committerNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2024-03-16 15:06:12 -0400
commit338220488260e11949434b2fd4d03eaaa1f7e53c (patch)
tree162ba05f70619b86ef9f839a0a0b75d3582d94a5 /src/client/util/SelectionManager.ts
parent5eba573d06b34184fc11cebcd73dc56decaa766b (diff)
summoning
Diffstat (limited to 'src/client/util/SelectionManager.ts')
-rw-r--r--src/client/util/SelectionManager.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/client/util/SelectionManager.ts b/src/client/util/SelectionManager.ts
index 36b926053..1ab982af1 100644
--- a/src/client/util/SelectionManager.ts
+++ b/src/client/util/SelectionManager.ts
@@ -34,7 +34,10 @@ export class SelectionManager {
public static SelectView = action((docView: DocumentView | undefined, extendSelection: boolean): void => {
if (!docView) this.DeselectAll();
else if (!docView.IsSelected) {
- if (!extendSelection) this.DeselectAll();
+ if (!extendSelection) {
+ this.DeselectAll();
+ console.log("1");
+ };
this.Instance.SelectedViews.push(docView);
docView.IsSelected = true;
docView._props.whenChildContentsActiveChanged(true);
@@ -51,6 +54,7 @@ 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;