mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Fix right click menu in electron
Fixes https://github.com/vector-im/riot-web/issues/6762
This commit is contained in:
parent
07456ee174
commit
e857ab762c
@ -61,7 +61,7 @@ function onLinkContextMenu(ev, params) {
|
|||||||
clipboard.writeText(url);
|
clipboard.writeText(url);
|
||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
popupMenu.popup();
|
popupMenu.popup({});
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -88,7 +88,7 @@ function onSelectedContextMenu(ev, params) {
|
|||||||
const items = _CutCopyPasteSelectContextMenus(params);
|
const items = _CutCopyPasteSelectContextMenus(params);
|
||||||
const popupMenu = Menu.buildFromTemplate(items);
|
const popupMenu = Menu.buildFromTemplate(items);
|
||||||
|
|
||||||
popupMenu.popup();
|
popupMenu.popup({});
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -101,7 +101,7 @@ function onEditableContextMenu(ev, params) {
|
|||||||
|
|
||||||
const popupMenu = Menu.buildFromTemplate(items);
|
const popupMenu = Menu.buildFromTemplate(items);
|
||||||
|
|
||||||
popupMenu.popup();
|
popupMenu.popup({});
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user