fix(deps): update dependency @github/hotkey to v2.1.0 (#3766)
continuous-integration/drone/push Build is passing Details

Reviewed-on: #3766
Co-authored-by: renovate <renovatebot@kolaente.de>
Co-committed-by: renovate <renovatebot@kolaente.de>
This commit is contained in:
renovate 2023-10-11 09:01:48 +00:00 committed by konrad
parent fc17b16c60
commit 40538df392
4 changed files with 6 additions and 10 deletions

View File

@ -49,7 +49,7 @@
"@fortawesome/free-regular-svg-icons": "6.4.2", "@fortawesome/free-regular-svg-icons": "6.4.2",
"@fortawesome/free-solid-svg-icons": "6.4.2", "@fortawesome/free-solid-svg-icons": "6.4.2",
"@fortawesome/vue-fontawesome": "3.0.3", "@fortawesome/vue-fontawesome": "3.0.3",
"@github/hotkey": "2.0.1", "@github/hotkey": "2.1.0",
"@infectoone/vue-ganttastic": "2.2.0", "@infectoone/vue-ganttastic": "2.2.0",
"@intlify/unplugin-vue-i18n": "1.4.0", "@intlify/unplugin-vue-i18n": "1.4.0",
"@kyvg/vue3-notification": "3.0.2", "@kyvg/vue3-notification": "3.0.2",

View File

@ -23,8 +23,8 @@ dependencies:
specifier: 3.0.3 specifier: 3.0.3
version: 3.0.3(@fortawesome/fontawesome-svg-core@6.4.2)(vue@3.3.4) version: 3.0.3(@fortawesome/fontawesome-svg-core@6.4.2)(vue@3.3.4)
'@github/hotkey': '@github/hotkey':
specifier: 2.0.1 specifier: 2.1.0
version: 2.0.1 version: 2.1.0
'@infectoone/vue-ganttastic': '@infectoone/vue-ganttastic':
specifier: 2.2.0 specifier: 2.2.0
version: 2.2.0(dayjs@1.11.10)(vue@3.3.4) version: 2.2.0(dayjs@1.11.10)(vue@3.3.4)
@ -3556,8 +3556,8 @@ packages:
vue: 3.3.4 vue: 3.3.4
dev: false dev: false
/@github/hotkey@2.0.1: /@github/hotkey@2.1.0:
resolution: {integrity: sha512-qKXjAJjtheJbf4ie3hi8IwrHWJZHB5qdojR6JGo6jvQNPpsdUbk/NIdU8sxu4PW41CjW80vfciDMu3MAP3j2Fg==} resolution: {integrity: sha512-xDdiRqVRjRJGCV9E7sZfosTLYn684b6bKiIfB0yzGNv3yI2039EeJ8DsmaJ18FhpPciFb7egDMcO37gcrjyjmQ==}
dev: false dev: false
/@hapi/hoek@9.2.1: /@hapi/hoek@9.2.1:

View File

@ -3,7 +3,7 @@
class="menu-show-button" class="menu-show-button"
@click="baseStore.toggleMenu()" @click="baseStore.toggleMenu()"
@shortkey="() => baseStore.toggleMenu()" @shortkey="() => baseStore.toggleMenu()"
v-shortcut="'Control+e'" v-shortcut="'Mod+e'"
:title="$t('keyboardShortcuts.toggleMenu')" :title="$t('keyboardShortcuts.toggleMenu')"
:aria-label="menuActive ? $t('misc.hideMenu') : $t('misc.showMenu')" :aria-label="menuActive ? $t('misc.hideMenu') : $t('misc.showMenu')"
/> />

View File

@ -1,15 +1,11 @@
import type {Directive} from 'vue' import type {Directive} from 'vue'
import {install, uninstall} from '@github/hotkey' import {install, uninstall} from '@github/hotkey'
import {isAppleDevice} from '@/helpers/isAppleDevice'
const directive = <Directive<HTMLElement,string>>{ const directive = <Directive<HTMLElement,string>>{
mounted(el, {value}) { mounted(el, {value}) {
if(value === '') { if(value === '') {
return return
} }
if (isAppleDevice() && value.includes('Control')) {
value = value.replace('Control', 'Meta')
}
install(el, value) install(el, value)
}, },
beforeUnmount(el) { beforeUnmount(el) {