Skip to main content

Function: zoomModifierName()

zoomModifierName(platform?): "Cmd" | "Ctrl"

Defined in: src/lib/classes/InputSettings/index.ts:102

Name of the key held to zoom with the scroll wheel: "Cmd" on Apple devices, "Ctrl" elsewhere.

Parameters​

platform?​

string = navigator.platform

Returns​

"Cmd" | "Ctrl"

Example​

zoomModifierName("MacIntel"); // "Cmd"
zoomModifierName("Win32"); // "Ctrl"