on(this.element, 'copy', event => {
// If mouse events are active it means the selection manager is disabled and
// copy should be handled by the host program.
- if (this.mouseEvents) {
+ if (!this.selectionManager.hasSelection) {
return;
}
copyHandler(event, term, this.selectionManager);