aboutsummaryrefslogtreecommitdiff
path: root/src/util/SelectionManager.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/SelectionManager.ts')
-rw-r--r--src/util/SelectionManager.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/util/SelectionManager.ts b/src/util/SelectionManager.ts
index 52c92d174..2a63248c4 100644
--- a/src/util/SelectionManager.ts
+++ b/src/util/SelectionManager.ts
@@ -28,4 +28,12 @@ export namespace SelectionManager {
export function IsSelected(doc: DocumentView): boolean {
return manager.SelectedDocuments.indexOf(doc) !== -1;
}
+
+ export function DeselectAll(): void {
+ manager.SelectedDocuments = []
+ }
+
+ export function SelectedDocuments(): Array<DocumentView> {
+ return manager.SelectedDocuments;
+ }
} \ No newline at end of file