diff --git a/apps/app/src/lib/stores/settings.svelte.ts b/apps/app/src/lib/stores/settings.svelte.ts index 8babef387..3d52d2f08 100644 --- a/apps/app/src/lib/stores/settings.svelte.ts +++ b/apps/app/src/lib/stores/settings.svelte.ts @@ -81,7 +81,11 @@ const registerGlobalShortcut = ({ try: async () => { if (!window.__TAURI_INTERNALS__) return; const { register } = await import('@tauri-apps/plugin-global-shortcut'); - return await register(shortcut, callback); + return await register(shortcut, (event) => { + if (event.state === 'Pressed') { + callback(); + } + }); }, catch: (error) => new WhisperingError({