From def29f9b3c1205944aab58beb8000815d41633b5 Mon Sep 17 00:00:00 2001 From: a distraction <106486896+dresklaw@users.noreply.github.com> Date: Tue, 17 Feb 2026 15:35:57 -0400 Subject: [PATCH] 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> --- src/native/window.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/native/window.ts b/src/native/window.ts index 1f98076..cf1064b 100644 --- a/src/native/window.ts +++ b/src/native/window.ts @@ -123,6 +123,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); } else if ( input.key === "F5" || ((input.control || input.meta) && input.key.toLowerCase() === "r")