()
| 1095 | } |
| 1096 | |
| 1097 | export 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 | |
| 1104 | function isModifierKey(key: string): boolean { |
| 1105 | return ( |
no test coverage detected