supporting middle click for opening links
This commit is contained in:
parent
17ad6faaef
commit
e736ad8c08
|
@ -172,6 +172,16 @@ export class DatabindedTextComponent implements OnInit {
|
|||
window.open(link, '_blank');
|
||||
return false;
|
||||
});
|
||||
|
||||
this.renderer.listen(el, 'mouseup', (event) => {
|
||||
if(event.which === 2){
|
||||
event.preventDefault();
|
||||
event.stopImmediatePropagation();
|
||||
|
||||
window.open(link, '_blank');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue