Skip to content

Commit

Permalink
Add a submenu item (and thus hotkey) to reset the zoom level (#569)
Browse files Browse the repository at this point in the history
  • Loading branch information
cady-b committed Apr 28, 2024
1 parent 45c315a commit 3fc1757
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ export async function setMenu(): Promise<void> {
// Fix for zoom in on keyboards with dedicated + like QWERTZ (or numpad)
// See https://github.com/electron/electron/issues/14742 and https://github.com/electron/electron/issues/5256
{label: "Zoom in", accelerator: "CmdOrCtrl+=", role: "zoomIn", visible: false},
{label: "Zoom out", accelerator: "CmdOrCtrl+-", role: "zoomOut"}
{label: "Zoom out", accelerator: "CmdOrCtrl+-", role: "zoomOut"},
{type: "separator"},
{label: "Reset zoom", accelerator: "CmdOrCtrl+0", role: "resetZoom"}
]
}
];
Expand Down

0 comments on commit 3fc1757

Please sign in to comment.