fix: allow CTRL+"+" to also zoom in. (#108)
Allow "+" to also zoom in. Signed-off-by: a distraction <106486896+dresklaw@users.noreply.github.com> Co-authored-by: Paul Makles <me@insrt.uk>
This commit is contained in:
parent
def29f9b3c
commit
2b962c5d06
|
|
@ -111,7 +111,7 @@ export function createMainWindow() {
|
|||
|
||||
// rebind zoom controls to be more sensible
|
||||
mainWindow.webContents.on("before-input-event", (event, input) => {
|
||||
if (input.control && input.key === "=") {
|
||||
if (input.control && (input.key === "=" || input.key === "+")) {
|
||||
// zoom in (+)
|
||||
event.preventDefault();
|
||||
mainWindow.webContents.setZoomLevel(
|
||||
|
|
|
|||
Loading…
Reference in New Issue