Allow "+" to also zoom in.
Signed-off-by: a distraction <106486896+dresklaw@users.noreply.github.com>
This commit is contained in:
parent
b765e84151
commit
1d4e6861ba
|
|
@ -105,7 +105,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