diff --git a/app/app.vue b/app/app.vue index 5916e3e32..9a90d2b0b 100644 --- a/app/app.vue +++ b/app/app.vue @@ -144,6 +144,8 @@ if (import.meta.client) { + + diff --git a/app/components/AppFooter.vue b/app/components/AppFooter.vue index 695535235..b8b2c9fa0 100644 --- a/app/components/AppFooter.vue +++ b/app/components/AppFooter.vue @@ -5,6 +5,7 @@ const route = useRoute() const isHome = computed(() => route.name === 'index') const discord = useDiscordLink() +const { commandPaletteShortcutLabel } = usePlatformModifierKey() const modalRef = useTemplateRef('modalRef') const showModal = () => modalRef.value?.showModal?.() const closeModal = () => modalRef.value?.close?.() @@ -52,10 +53,17 @@ const closeModal = () => modalRef.value?.close?.() :modalTitle="$t('footer.keyboard_shortcuts')" class="w-auto max-w-lg" > +

+ {{ $t('shortcuts.command_palette_description') }} +

{{ $t('shortcuts.section.global') }}

    +
  • + {{ commandPaletteShortcutLabel }} + {{ $t('shortcuts.command_palette') }} +
  • / {{ $t('shortcuts.focus_search') }} diff --git a/app/components/AppHeader.vue b/app/components/AppHeader.vue index 8f0cb2290..31a31f771 100644 --- a/app/components/AppHeader.vue +++ b/app/components/AppHeader.vue @@ -6,6 +6,8 @@ import { NPMX_DOCS_SITE } from '#shared/utils/constants' const keyboardShortcuts = useKeyboardShortcuts() const discord = useDiscordLink() +const { open: openCommandPalette } = useCommandPalette() +const { commandPaletteShortcutLabel } = usePlatformModifierKey() withDefaults( defineProps<{ @@ -258,6 +260,24 @@ onKeyStroke(