Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

common: add ctrl+shift+: web keybinding for command palette Signed-off-by: 01zulfi <[email protected]>

01zulfi9280d0ef7edf
diff --git a/docs/help/contents/keyboard-shortcuts.md b/docs/help/contents/keyboard-shortcuts.md
index 654b5b5fb..dfce26fb6 100644
--- a/docs/help/contents/keyboard-shortcuts.md
+++ b/docs/help/contents/keyboard-shortcuts.md
@@ -22,7 +22,7 @@ The following keyboard shortcuts will help you navigate Notesnook faster.
| --- | --- | --- | --- |
| Next tab | Ctrl Alt → / Ctrl Alt ⇧ → | Ctrl tab | ⌘ tab |
| Previous tab | Ctrl Alt ← / Ctrl Alt ⇧ ← | Ctrl ⇧ tab | ⌘ ⇧ tab |
-| Command palette | Ctrl ⇧ P | Ctrl ⇧ P | ⌘ ⇧ P |
+| Command palette | Ctrl ⇧ P / Ctrl ⇧ : | Ctrl ⇧ P | ⌘ ⇧ P |
| Quick open | Ctrl P | Ctrl P | ⌘ P |
| New tab | - | Ctrl T | ⌘ T |
| Close active tab | - | Ctrl W | ⌘ W |
diff --git a/packages/common/src/utils/keybindings.ts b/packages/common/src/utils/keybindings.ts
index 74e3a5fea..9609437d9 100644
--- a/packages/common/src/utils/keybindings.ts
+++ b/packages/common/src/utils/keybindings.ts
@@ -96,7 +96,10 @@ export const hotkeys = {
type: "hotkeys"
},
openCommandPalette: {
- keys: normalizeKeys(["ctrl+shift+p"]),
+ keys: normalizeKeys({
+ desktop: ["ctrl+shift+p"],
+ web: ["ctrl+shift+p", "ctrl+shift+:"]
+ }),
description: "Command palette",
category: "Navigation",
type: "hotkeys"