From 5a516f72422d0762eb1635a13bd53c325ad135e3 Mon Sep 17 00:00:00 2001 From: Liyas Thomas Date: Mon, 17 Jul 2023 19:27:49 +0530 Subject: [PATCH] docs: fixed shortcut keys for spotlight and shortcuts menu (#3192) --- .../hoppscotch-common/src/components/app/ShortcutsPrompt.vue | 5 +++-- packages/hoppscotch-common/src/helpers/shortcuts.ts | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) 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 @@
{{ getSpecialKey() }} - K + /
- / + {{ getSpecialKey() }} + K
? 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"), }, {