aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/SelectionManager.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2019-04-11 01:05:12 -0400
committerbobzel <zzzman@gmail.com>2019-04-11 01:05:12 -0400
commite5411598c4d2ecc7a0b4d8584b576ff5f45ad2a0 (patch)
treef0a10bb357d36186922482f1667e493b782c0ed5 /src/client/util/SelectionManager.ts
parenta006717f7a847c1a230a334fa645b7382aa067d2 (diff)
tried to fix some context menu and other conflicting interactions
Diffstat (limited to 'src/client/util/SelectionManager.ts')
-rw-r--r--src/client/util/SelectionManager.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/util/SelectionManager.ts b/src/client/util/SelectionManager.ts
index c6b8c7b0d..2638e3b7d 100644
--- a/src/client/util/SelectionManager.ts
+++ b/src/client/util/SelectionManager.ts
@@ -25,6 +25,7 @@ export namespace SelectionManager {
DeselectAll(): void {
manager.SelectedDocuments.map(dv => dv.props.onActiveChanged(false));
manager.SelectedDocuments = [];
+ Main.Instance.SetTextDoc(undefined, undefined, undefined);
}
}
@@ -48,7 +49,6 @@ export namespace SelectionManager {
manager.DeselectAll();
if (found) manager.SelectDoc(found, false);
- Main.Instance.SetTextDoc(undefined, undefined, undefined);
}
export function SelectedDocuments(): Array<DocumentView> {