diff options
author | Saúl Ibarra Corretgé <s@saghul.net> | 2020-06-04 10:31:10 +0200 |
---|---|---|
committer | Saúl Ibarra Corretgé <s@saghul.net> | 2020-06-04 10:32:03 +0200 |
commit | a1ec905ff3af1cae06b0947202736ce2f41c2454 (patch) | |
tree | dcc6ec56b81f1dbdf4e33ec9a5d3f96804b63502 /main.js | |
parent | 962470d97e8faefa5728ff4c324ce387cfd456e0 (diff) |
Add context menu
Fixes: https://github.com/jitsi/jitsi-meet-electron/issues/380
Diffstat (limited to 'main.js')
-rw-r--r-- | main.js | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -6,6 +6,7 @@ const { app, shell } = require('electron'); +const contextMenu = require('electron-context-menu'); const debug = require('electron-debug'); const isDev = require('electron-is-dev'); const { autoUpdater } = require('electron-updater'); @@ -34,6 +35,18 @@ app.allowRendererProcessReuse = false; autoUpdater.logger = require('electron-log'); autoUpdater.logger.transports.file.level = 'info'; +// Enable context menu so things like copy and paste work in input fields. +contextMenu({ + showLookUpSelection: false, + showSearchWithGoogle: false, + showCopyImage: false, + showCopyImageAddress: false, + showSaveImage: false, + showSaveImageAs: false, + showInspectElement: true, + showServices: false +}); + // Enable DevTools also on release builds to help troubleshoot issues. Don't // show them automatically though. debug({ |