(feat): add hotkeys
Some checks failed
/ build-web (push) Successful in 7m53s
/ build-desktop (linux) (push) Successful in 12m24s
/ release (push) Has been cancelled
/ build-mobile (push) Has been cancelled

This commit is contained in:
Alois 2026-08-02 01:10:05 +02:00
commit 85633a1c81
Signed by: alois
SSH key fingerprint: SHA256:GBzT2DXvAuGV9XIV5W3WrzVpjU54FThmxHXdbz95J24
27 changed files with 1014 additions and 33 deletions

View file

@ -38,6 +38,13 @@ type ElectronDesktopApi = {
iconDataUrl?: string;
}) => Promise<void>;
};
hotkeys?: {
setBindings?: (
bindings: Array<{ id: string; accelerator: string }>,
) => Promise<Record<string, boolean>>;
setSuspended?: (suspended: boolean) => Promise<Record<string, boolean>>;
onTriggered?: (callback: (id: string) => void) => () => void;
};
secureStorage?: {
getStatus?: () => Promise<{ available: boolean; backend: string | null }>;
load?: (key: string) => Promise<string | null>;