Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

docs: fixed shortcut keys for spotlight and shortcuts menu (#3192)

Liyas Thomas5a516f72422d
diff --git a/packages/hoppscotch-common/src/components/app/ShortcutsPrompt.vue b/packages/hoppscotch-common/src/components/app/ShortcutsPrompt.vue
index 45f788935..001b4b98d 100644
--- a/packages/hoppscotch-common/src/components/app/ShortcutsPrompt.vue
+++ b/packages/hoppscotch-common/src/components/app/ShortcutsPrompt.vue
@@ -22,10 +22,11 @@
</div>
<div class="flex">
<kbd class="shortcut-key">{{ getSpecialKey() }}</kbd>
- <kbd class="shortcut-key">K</kbd>
+ <kbd class="shortcut-key">/</kbd>
</div>
<div class="flex">
- <kbd class="shortcut-key">/</kbd>
+ <kbd class="shortcut-key">{{ getSpecialKey() }}</kbd>
+ <kbd class="shortcut-key">K</kbd>
</div>
<div class="flex">
<kbd class="shortcut-key">?</kbd>
diff --git a/packages/hoppscotch-common/src/helpers/shortcuts.ts b/packages/hoppscotch-common/src/helpers/shortcuts.ts
index 73af38270..b94178c6f 100644
--- a/packages/hoppscotch-common/src/helpers/shortcuts.ts
+++ b/packages/hoppscotch-common/src/helpers/shortcuts.ts
@@ -16,12 +16,12 @@ export function getShortcuts(t: (x: string) => string): ShortcutDef[] {
},
{
label: t("shortcut.general.command_menu"),
- keys: ["/"],
+ keys: [getPlatformSpecialKey(), "K"],
section: t("shortcut.general.title"),
},
{
label: t("shortcut.general.show_all"),
- keys: [getPlatformSpecialKey(), "K"],
+ keys: [getPlatformSpecialKey(), "/"],
section: t("shortcut.general.title"),
},
{