feat(keyboard_actions): add friendly names to all actions

This commit is contained in:
Elian Doran
2025-07-27 16:50:02 +03:00
parent 793867269b
commit 0b24553ace
5 changed files with 125 additions and 35 deletions

View File

@@ -102,8 +102,9 @@ export interface KeyboardShortcutSeparator {
separator: string;
}
export interface KeyboardShortcutBase {
export interface ActionKeyboardShortcut {
actionName: KeyboardActionNames;
friendlyName: string;
description?: string;
defaultShortcuts?: string[];
effectiveShortcuts?: string[];
@@ -118,8 +119,8 @@ export interface KeyboardShortcutBase {
scope?: "window" | "note-tree" | "text-detail" | "code-detail";
}
type KeyboardShortcut = KeyboardShortcutBase | KeyboardShortcutSeparator;
export type KeyboardShortcut = ActionKeyboardShortcut | KeyboardShortcutSeparator;
export interface KeyboardShortcutWithRequiredActionName extends KeyboardShortcut {
export interface KeyboardShortcutWithRequiredActionName extends ActionKeyboardShortcut {
actionName: KeyboardActionNames;
}