Merge pull request #1113 from bmf-ribeiro/selection-event-1093

Expose a selection event
This commit is contained in:
Daniel Imms
2017-11-07 13:56:07 -08:00
committed by GitHub
3 changed files with 8 additions and 2 deletions
+4
View File
@@ -255,6 +255,7 @@ export class SelectionManager extends EventEmitter implements ISelectionManager
public selectAll(): void {
this._model.isSelectAllActive = true;
this.refresh();
this.emit('selection');
}
/**
@@ -541,6 +542,9 @@ export class SelectionManager extends EventEmitter implements ISelectionManager
*/
private _onMouseUp(event: MouseEvent): void {
this._removeMouseDownListeners();
if (this.hasSelection)
this.emit('selection');
}
/**