fix: Add common zoom-reset shortcut. (#112)
Add common zoom reset shortcut. Signed-off-by: a distraction <106486896+dresklaw@users.noreply.github.com> Signed-off-by: marcy <69540471+reeesespuffs@users.noreply.github.com> Co-authored-by: marcy <69540471+reeesespuffs@users.noreply.github.com>
This commit is contained in:
@@ -123,6 +123,10 @@ export function createMainWindow() {
|
|||||||
mainWindow.webContents.setZoomLevel(
|
mainWindow.webContents.setZoomLevel(
|
||||||
mainWindow.webContents.getZoomLevel() - 1,
|
mainWindow.webContents.getZoomLevel() - 1,
|
||||||
);
|
);
|
||||||
|
} else if (input.control && input.key === "0") {
|
||||||
|
// reset zoom to default.
|
||||||
|
event.preventDefault();
|
||||||
|
mainWindow.webContents.setZoomLevel(0);
|
||||||
} else if (
|
} else if (
|
||||||
input.key === "F5" ||
|
input.key === "F5" ||
|
||||||
((input.control || input.meta) && input.key.toLowerCase() === "r")
|
((input.control || input.meta) && input.key.toLowerCase() === "r")
|
||||||
|
|||||||
Reference in New Issue
Block a user