Add common zoom reset shortcut.

Signed-off-by: a distraction <106486896+dresklaw@users.noreply.github.com>
This commit is contained in:
a distraction 2026-02-15 12:54:53 -04:00 committed by GitHub
parent b765e84151
commit 9d70acd080
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -117,6 +117,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);
} }
}); });