@@ -52,7 +52,6 @@ const mobileLinks = computed<NavigationConfigWithGroups>(() => [
5252 name: ' About' ,
5353 label: $t (' footer.about' ),
5454 to: { name: ' about' },
55- keyshortcut: null ,
5655 type: ' link' ,
5756 external: false ,
5857 iconClass: ' i-carbon:information' ,
@@ -61,7 +60,6 @@ const mobileLinks = computed<NavigationConfigWithGroups>(() => [
6160 name: ' Privacy Policy' ,
6261 label: $t (' privacy_policy.title' ),
6362 to: { name: ' privacy' },
64- keyshortcut: null ,
6563 type: ' link' ,
6664 external: false ,
6765 iconClass: ' i-carbon:security' ,
@@ -81,7 +79,6 @@ const mobileLinks = computed<NavigationConfigWithGroups>(() => [
8179 label: $t (' footer.docs' ),
8280 href: ' https://docs.npmx.dev' ,
8381 target: ' _blank' ,
84- keyshortcut: null ,
8582 type: ' link' ,
8683 external: true ,
8784 iconClass: ' i-carbon:document' ,
@@ -91,7 +88,6 @@ const mobileLinks = computed<NavigationConfigWithGroups>(() => [
9188 label: $t (' footer.source' ),
9289 href: ' https://repo.npmx.dev' ,
9390 target: ' _blank' ,
94- keyshortcut: null ,
9591 type: ' link' ,
9692 external: true ,
9793 iconClass: ' i-carbon:logo-github' ,
@@ -101,7 +97,6 @@ const mobileLinks = computed<NavigationConfigWithGroups>(() => [
10197 label: $t (' footer.social' ),
10298 href: ' https://social.npmx.dev' ,
10399 target: ' _blank' ,
104- keyshortcut: null ,
105100 type: ' link' ,
106101 external: true ,
107102 iconClass: ' i-simple-icons:bluesky' ,
@@ -111,7 +106,6 @@ const mobileLinks = computed<NavigationConfigWithGroups>(() => [
111106 label: $t (' footer.chat' ),
112107 href: ' https://chat.npmx.dev' ,
113108 target: ' _blank' ,
114- keyshortcut: null ,
115109 type: ' link' ,
116110 external: true ,
117111 iconClass: ' i-carbon:chat' ,
@@ -176,7 +170,7 @@ onKeyStroke(
176170 }
177171
178172 for (const link of desktopLinks .value ) {
179- if (isKeyWithoutModifiers (e , link .keyshortcut )) {
173+ if (link . to && link . keyshortcut && isKeyWithoutModifiers (e , link .keyshortcut )) {
180174 e .preventDefault ()
181175 navigateTo (link .to .name )
182176 break
0 commit comments