diff --git a/package.json b/package.json index cf813e174..5a122b18d 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ "@fortawesome/free-regular-svg-icons": "6.4.2", "@fortawesome/free-solid-svg-icons": "6.4.2", "@fortawesome/vue-fontawesome": "3.0.3", - "@github/hotkey": "2.0.1", + "@github/hotkey": "2.1.0", "@infectoone/vue-ganttastic": "2.2.0", "@intlify/unplugin-vue-i18n": "1.4.0", "@kyvg/vue3-notification": "3.0.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1d6079696..b4743a815 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -23,8 +23,8 @@ dependencies: specifier: 3.0.3 version: 3.0.3(@fortawesome/fontawesome-svg-core@6.4.2)(vue@3.3.4) '@github/hotkey': - specifier: 2.0.1 - version: 2.0.1 + specifier: 2.1.0 + version: 2.1.0 '@infectoone/vue-ganttastic': specifier: 2.2.0 version: 2.2.0(dayjs@1.11.10)(vue@3.3.4) @@ -3556,8 +3556,8 @@ packages: vue: 3.3.4 dev: false - /@github/hotkey@2.0.1: - resolution: {integrity: sha512-qKXjAJjtheJbf4ie3hi8IwrHWJZHB5qdojR6JGo6jvQNPpsdUbk/NIdU8sxu4PW41CjW80vfciDMu3MAP3j2Fg==} + /@github/hotkey@2.1.0: + resolution: {integrity: sha512-xDdiRqVRjRJGCV9E7sZfosTLYn684b6bKiIfB0yzGNv3yI2039EeJ8DsmaJ18FhpPciFb7egDMcO37gcrjyjmQ==} dev: false /@hapi/hoek@9.2.1: diff --git a/src/components/home/MenuButton.vue b/src/components/home/MenuButton.vue index 40077000d..b221ec5b8 100644 --- a/src/components/home/MenuButton.vue +++ b/src/components/home/MenuButton.vue @@ -3,7 +3,7 @@ class="menu-show-button" @click="baseStore.toggleMenu()" @shortkey="() => baseStore.toggleMenu()" - v-shortcut="'Control+e'" + v-shortcut="'Mod+e'" :title="$t('keyboardShortcuts.toggleMenu')" :aria-label="menuActive ? $t('misc.hideMenu') : $t('misc.showMenu')" /> diff --git a/src/directives/shortcut.ts b/src/directives/shortcut.ts index bb14a7109..cf8ef4509 100644 --- a/src/directives/shortcut.ts +++ b/src/directives/shortcut.ts @@ -1,15 +1,11 @@ import type {Directive} from 'vue' import {install, uninstall} from '@github/hotkey' -import {isAppleDevice} from '@/helpers/isAppleDevice' const directive = >{ mounted(el, {value}) { if(value === '') { return } - if (isAppleDevice() && value.includes('Control')) { - value = value.replace('Control', 'Meta') - } install(el, value) }, beforeUnmount(el) {