Ensure terminal links are not draggable
This commit is contained in:
@@ -232,6 +232,7 @@ export class Linkifier {
|
|||||||
private _createAnchorElement(uri: string, handler: LinkMatcherHandler, isHypertextLinkHandler: boolean): HTMLAnchorElement {
|
private _createAnchorElement(uri: string, handler: LinkMatcherHandler, isHypertextLinkHandler: boolean): HTMLAnchorElement {
|
||||||
const element = this._document.createElement('a');
|
const element = this._document.createElement('a');
|
||||||
element.textContent = uri;
|
element.textContent = uri;
|
||||||
|
element.draggable = false;
|
||||||
if (isHypertextLinkHandler) {
|
if (isHypertextLinkHandler) {
|
||||||
element.href = uri;
|
element.href = uri;
|
||||||
// Force link on another tab so work is not lost
|
// Force link on another tab so work is not lost
|
||||||
|
|||||||
Reference in New Issue
Block a user