aboutsummaryrefslogtreecommitdiff
path: root/main.js
diff options
context:
space:
mode:
authorSaúl Ibarra Corretgé <s@saghul.net>2020-06-04 10:31:10 +0200
committerSaúl Ibarra Corretgé <s@saghul.net>2020-06-04 10:32:03 +0200
commita1ec905ff3af1cae06b0947202736ce2f41c2454 (patch)
treedcc6ec56b81f1dbdf4e33ec9a5d3f96804b63502 /main.js
parent962470d97e8faefa5728ff4c324ce387cfd456e0 (diff)
Add context menu
Fixes: https://github.com/jitsi/jitsi-meet-electron/issues/380
Diffstat (limited to 'main.js')
-rw-r--r--main.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/main.js b/main.js
index 35638a0..0e4f760 100644
--- a/main.js
+++ b/main.js
@@ -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({