MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / adjustWindowZoom

Function adjustWindowZoom

apps/desktop/src/main/index.ts:807–814  ·  view source on GitHub ↗
(
  win: BrowserWindow | null | undefined,
  delta: number
)

Source from the content-addressed store, hash-verified

805}
806
807async function adjustWindowZoom(
808 win: BrowserWindow | null | undefined,
809 delta: number
810): Promise<number> {
811 const target = win && !win.isDestroyed() ? win : mainWindow
812 const base = target && !target.isDestroyed() ? target.webContents.getZoomFactor() : currentZoomFactor
813 return await setWindowZoom(target, base + delta)
814}
815
816function isZoomShortcut(input: Electron.Input, key: string, code: string): boolean {
817 return input.key === key || input.code === code

Callers 3

installZoomControlsFunction · 0.85
registerIpcFunction · 0.85
installAppMenuFunction · 0.85

Calls 1

setWindowZoomFunction · 0.85

Tested by

no test coverage detected