From bfdffc653e0f7c090d4f11ac454e37818ea28508 Mon Sep 17 00:00:00 2001 From: Aaron Raimist Date: Sat, 2 Feb 2019 15:52:55 -0600 Subject: [PATCH 1/2] Allow Electron to zoom with CommandOrControl+= Signed-off-by: Aaron Raimist --- README.md | 2 +- electron_app/src/vectormenu.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4409b3ead2..a19f4e69ba 100644 --- a/README.md +++ b/README.md @@ -213,7 +213,7 @@ for 64 bit Linux: 1. Follow the instructions in 'Building From Source' above 2. `node_modules/.bin/build -l --x64` -All electron packages go into `electron/dist/` +All electron packages go into `electron_app/dist/` Many thanks to @aviraldg for the initial work on the electron integration. diff --git a/electron_app/src/vectormenu.js b/electron_app/src/vectormenu.js index 14f91a5268..5e2417c771 100644 --- a/electron_app/src/vectormenu.js +++ b/electron_app/src/vectormenu.js @@ -38,6 +38,7 @@ const template = [ { type: 'separator' }, { role: 'resetzoom' }, { role: 'zoomin' }, + { role: 'zoomin', accelerator: 'CommandOrControl+=' }, { role: 'zoomout' }, { type: 'separator' }, { role: 'togglefullscreen' }, From a03a738317088b3b9552739143939a2ddae2642d Mon Sep 17 00:00:00 2001 From: Aaron Raimist Date: Wed, 6 Feb 2019 13:20:36 -0600 Subject: [PATCH 2/2] Only allow Electron to zoom with CommandOrControl+= Signed-off-by: Aaron Raimist --- electron_app/src/vectormenu.js | 1 - 1 file changed, 1 deletion(-) diff --git a/electron_app/src/vectormenu.js b/electron_app/src/vectormenu.js index 5e2417c771..ce35cf7c83 100644 --- a/electron_app/src/vectormenu.js +++ b/electron_app/src/vectormenu.js @@ -37,7 +37,6 @@ const template = [ submenu: [ { type: 'separator' }, { role: 'resetzoom' }, - { role: 'zoomin' }, { role: 'zoomin', accelerator: 'CommandOrControl+=' }, { role: 'zoomout' }, { type: 'separator' },