Skip to content

Commit

Permalink
Fix right click menu in electron
Browse files Browse the repository at this point in the history
Fixes #6762
  • Loading branch information
dbkr committed May 18, 2018
1 parent b128431 commit 8872a6a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions electron_app/src/webcontents-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function onLinkContextMenu(ev, params) {
clipboard.writeText(url);
},
}));
popupMenu.popup();
popupMenu.popup({});
ev.preventDefault();
}

Expand All @@ -88,7 +88,7 @@ function onSelectedContextMenu(ev, params) {
const items = _CutCopyPasteSelectContextMenus(params);
const popupMenu = Menu.buildFromTemplate(items);

popupMenu.popup();
popupMenu.popup({});
ev.preventDefault();
}

Expand All @@ -101,7 +101,7 @@ function onEditableContextMenu(ev, params) {

const popupMenu = Menu.buildFromTemplate(items);

popupMenu.popup();
popupMenu.popup({});
ev.preventDefault();
}

Expand Down

0 comments on commit 8872a6a

Please sign in to comment.