Fixes #3603. Allow browser context menu
This commit is contained in:
parent
d191be8771
commit
8ec2032c7a
1 changed files with 4 additions and 2 deletions
|
@ -119,6 +119,8 @@ export function openCopyLinkMenu(text, event) {
|
||||||
|
|
||||||
// Block context menu
|
// Block context menu
|
||||||
export function stopContextMenu(event) {
|
export function stopContextMenu(event) {
|
||||||
event.preventDefault();
|
if (navigator.userAgent.toLowerCase().indexOf(' electron/') > -1) {
|
||||||
event.stopPropagation();
|
event.preventDefault();
|
||||||
|
event.stopPropagation();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue