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

Function isMacPlatform

packages/app-core/src/lib/keymaps.ts:1097–1102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1095}
1096
1097export function isMacPlatform(): boolean {
1098 const runtimePlatform = getRuntimePlatform();
1099 if (runtimePlatform) return runtimePlatform === "darwin";
1100 if (typeof navigator === "undefined") return true;
1101 return /Mac|iPhone|iPad|iPod/i.test(navigator.platform);
1102}
1103
1104function isModifierKey(key: string): boolean {
1105 return (

Callers 6

handlerFunction · 0.90
KeymapRecorderModalFunction · 0.90
normalizeShortcutBindingFunction · 0.85
shortcutBindingFromEventFunction · 0.85
formatKeyTokenFunction · 0.85

Calls 1

getRuntimePlatformFunction · 0.85

Tested by

no test coverage detected