From e4d42c8bacc8cdb86a0efd94f72afdd869dab86c Mon Sep 17 00:00:00 2001 From: 01zulfi <85733202+01zulfi@users.noreply.github.com> Date: Tue, 22 Jul 2025 10:35:04 +0500 Subject: [PATCH] web: add command to show keyboard shortcuts in command palette Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com> --- apps/web/src/dialogs/command-palette/commands.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/apps/web/src/dialogs/command-palette/commands.ts b/apps/web/src/dialogs/command-palette/commands.ts index 3bf215cd4..10ca9f42b 100644 --- a/apps/web/src/dialogs/command-palette/commands.ts +++ b/apps/web/src/dialogs/command-palette/commands.ts @@ -50,6 +50,7 @@ import { notebookMenuItems } from "../../components/notebook"; import { tagMenuItems } from "../../components/tag"; import { useEditorManager } from "../../components/editor/manager"; import Config from "../../utils/config"; +import { KeyboardShortcutsDialog } from "../keyboard-shortcuts-dialog"; export interface BaseCommand { id: string; @@ -181,6 +182,14 @@ const staticCommands: Command[] = [ group: strings.navigate(), type: "command" }, + { + id: "keyboard-shortcuts", + title: "Keyboard shortcuts", + icon: ArrowTopRight, + action: () => KeyboardShortcutsDialog.show({}), + group: strings.navigate(), + type: "command" + }, { id: "attachment-manager", title: strings.attachmentManager(),