feat(command_palette): hide electron-only actions on web

This commit is contained in:
Elian Doran
2025-07-27 22:05:24 +03:00
parent 1565a0fd80
commit 237a4e9a74
4 changed files with 22 additions and 0 deletions

View File

@@ -122,6 +122,11 @@ export interface ActionKeyboardShortcut {
* e.g. CTRL-C in note tree does something a bit different from CTRL-C in the text editor.
*/
scope?: "window" | "note-tree" | "text-detail" | "code-detail";
/**
* Whether the action is only available for the desktop application.
* This is used to hide actions that are not available in the web version.
*/
isElectronOnly?: boolean;
}
export type KeyboardShortcut = ActionKeyboardShortcut | KeyboardShortcutSeparator;