Ensure terminal links are not draggable

This commit is contained in:
Daniel Imms
2017-03-16 12:07:25 -07:00
parent d9059d18c0
commit adde8ab2c3
+1
View File
@@ -232,6 +232,7 @@ export class Linkifier {
private _createAnchorElement(uri: string, handler: LinkMatcherHandler, isHypertextLinkHandler: boolean): HTMLAnchorElement {
const element = this._document.createElement('a');
element.textContent = uri;
element.draggable = false;
if (isHypertextLinkHandler) {
element.href = uri;
// Force link on another tab so work is not lost