web: add command to show keyboard shortcuts in command palette

Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com>
This commit is contained in:
01zulfi
2025-07-22 10:35:04 +05:00
committed by Abdullah Atta
parent 5b85067e15
commit e4d42c8bac

View File

@@ -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(),