File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -8,11 +8,11 @@ import type { Slot } from 'vue'
88
99import { computed } from ' vue'
1010import { t } from ' ../../l10n.ts'
11- import { isMacos } from ' ../../utils/platform.ts'
11+ import { isMac } from ' ../../utils/platform.ts'
1212
1313const {
1414 symbol = undefined ,
15- mac = isMacos ,
15+ mac = isMac ,
1616} = defineProps <{
1717 /**
1818 * Key name or symbol to display.
Original file line number Diff line number Diff line change 33 * SPDX-License-Identifier: AGPL-3.0-or-later
44 */
55import { onKeyStroke } from '@vueuse/core'
6+ import { isMac } from '../../utils/platform.ts'
67
78const disableKeyboardShortcuts = window . OCP ?. Accessibility ?. disableKeyboardShortcuts ?.( )
8- const isMac = / m a c | i p a d | i p h o n e | d a r w i n / i. test ( navigator . userAgent )
99const derivedKeysRegex = / ^ [ a - z A - Z 0 - 9 ] $ /
1010const nonAsciiPrintableRegex = / ^ [ ^ \x20 - \x7F ] $ /
1111
Original file line number Diff line number Diff line change 33 * SPDX-License-Identifier: AGPL-3.0-or-later
44 */
55
6- export const isMacos = / M a c | i P h o n e | i P o d | i P a d / i. test ( navigator . userAgent )
6+ export const isMac = / m a c | i p a d | i p h o n e | d a r w i n / i. test ( navigator . userAgent )
You can’t perform that action at this time.
0 commit comments