Add common zoom reset shortcut.
Signed-off-by: a distraction <106486896+dresklaw@users.noreply.github.com>
This commit is contained in:
parent
b765e84151
commit
9d70acd080
|
|
@ -117,6 +117,10 @@ export function createMainWindow() {
|
|||
mainWindow.webContents.setZoomLevel(
|
||||
mainWindow.webContents.getZoomLevel() - 1,
|
||||
);
|
||||
} else if (input.control && input.key === "0") {
|
||||
// reset zoom to default.
|
||||
event.preventDefault();
|
||||
mainWindow.webContents.setZoomLevel(0);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue