electron-util
Version:
Useful utilities for Electron apps and modules
9 lines (6 loc) • 411 B
TypeScript
/**
Disable zooming, usually caused by pinching the trackpad on macOS or Ctrl+/Ctrl- on Windows.
This function blocks all zoom keyboard shortcuts (Ctrl/Cmd +/-/0) and sets the zoom to 100%.
@param webContents - Default: webContents from current window in main process, or webFrame in renderer process.
*/
export declare const disableZoom: (web?: Electron.WebContents | Electron.WebFrame | undefined) => void;