Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix hotkeys not saving and showing

Brendan Allane4b4781b4c10
diff --git a/apps/desktop/src/routes/(window-chrome)/settings/hotkeys.tsx b/apps/desktop/src/routes/(window-chrome)/settings/hotkeys.tsx
index 77a57a21c..99c9bdd67 100644
--- a/apps/desktop/src/routes/(window-chrome)/settings/hotkeys.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/settings/hotkeys.tsx
@@ -43,8 +43,7 @@ function Inner(props: { initialStore: HotkeysStore | null }) {
}>(props.initialStore?.hotkeys ?? {});
createEffect(() => {
- // biome-ignore lint/suspicious/noExplicitAny: specta#283
- hotkeysStore.set({ hotkeys: hotkeys as any });
+ hotkeysStore.set({ hotkeys: { ...hotkeys } as any });
});
const [listening, setListening] = createSignal<{