Merge pull request #3952 from vector-im/dbkr/electron_copy_link_location
Desktop: 'copy link address'
This commit is contained in:
commit
b290a28123
1 changed files with 6 additions and 0 deletions
|
@ -86,6 +86,12 @@ function onLinkContextMenu(ev, params) {
|
||||||
safeOpenURL(params.linkURL);
|
safeOpenURL(params.linkURL);
|
||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
|
popup_menu.append(new electron.MenuItem({
|
||||||
|
label: 'Copy Link Address',
|
||||||
|
click() {
|
||||||
|
electron.clipboard.writeText(params.linkURL);
|
||||||
|
},
|
||||||
|
}));
|
||||||
popup_menu.popup();
|
popup_menu.popup();
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue