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:
a distraction
2026-02-17 15:35:57 -04:00
committed by GitHub
parent e2dc20b755
commit def29f9b3c
+4
View File
@@ -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")