Refactor isMac to a utility module (#22829)

GitOrigin-RevId: c6ab1dbeb1c56c35af121e7f657325a89fc847ea
This commit is contained in:
Alf Eaton
2025-01-16 09:05:26 +00:00
committed by Copybot
parent 7994390967
commit f2f1178bcd
12 changed files with 12 additions and 18 deletions
@@ -1,3 +1,3 @@
const isMac = /Mac/.test(window.navigator?.platform)
import { isMac } from '@/shared/utils/os'
export const metaKey = isMac ? 'meta' : 'ctrl'